ProfileApplicationResult (MavenModel model, File basedir, MavenExplicitProfiles explicitProfiles, HashSet<String> alwaysOnProfiles, MavenToken token) { MavenServerUtil.checkToken(token); try { return Maven3XProfileUtil.applyProfiles(model, basedir, explicitProfiles, alwaysOnProfiles); } catch (Throwable e) { throw wrapToSerializableRuntimeException(e); } }