log.debug("Error validating application instance definition ", e);
log.info(instanceDefinition.toString());
throw e;
}
try {
builder.persist(appconfdir);
} catch (LockAcquireFailedException e) {
log.warn("Failed to get a Lock on {} : {}", builder, e);
throw new BadClusterStateException("Failed to save " + clustername
+ ": " + e);
}