} catch (SecurityException e) {
LOG.error("Cannot create scheduler: " + StringUtils.stringifyException(e));
return null;
}
AbstractScheduler scheduler;
try {
scheduler = constructor.newInstance(deploymentManager, instanceManager);
} catch (InstantiationException e) {
LOG.error("Cannot create scheduler: " + StringUtils.stringifyException(e));