}
} catch (Exception ex) {
logger.debug("Job not correctly configured", ex);
final String errorMessage;
if (ex instanceof UnconfiguredConfiguredPropertyException) {
UnconfiguredConfiguredPropertyException unconfiguredConfiguredPropertyException = (UnconfiguredConfiguredPropertyException) ex;
ConfiguredPropertyDescriptor configuredProperty = unconfiguredConfiguredPropertyException
.getConfiguredProperty();
AbstractBeanJobBuilder<?, ?, ?> beanJobBuilder = unconfiguredConfiguredPropertyException
.getBeanJobBuilder();
errorMessage = "Property '" + configuredProperty.getName() + "' in "
+ LabelUtils.getLabel(beanJobBuilder) + " is not set!";
} else {
errorMessage = ex.getMessage();