}
}
}
// Create and initialize bootstrap
Bootstrap bootstrap = new Bootstrap(runtimeProperties);
if (!runtimeProperties.containsKey("executeUtility")) {
bootstrap.run();
} else {
ApplicationContext context = bootstrap.getApplicationContext();
UtilityRunner ur = (UtilityRunner) context.getBean(runtimeProperties
.getProperty("executeUtility"));
ur.run(runtimeProperties);
}
bootstrap.close();
} catch (ParseException ex) {
LOG.error("Invalid command line specified.", ex);
} catch (RuntimeException ex) {
LOG.error("Error during execution.", getRootCause(ex));