if (deployExploded) {
throw new IllegalArgumentException(
"Deploying farmed applications in exploded form is not supported by the Profile Service.");
}
try {
deploymentManager.loadProfile(FARM_PROFILE_KEY);
} catch (Exception e) {
LOG.info("Failed to switch to farm profile - could not update " + resourceTypeName + " file '"
+ deploymentFile + "' using [" + packageDetails + "].");
String errorMessage = ThrowableUtil.getAllMessages(e);
return failApplicationDeployment(errorMessage, packageDetails);