replaceService(componentResolverServiceName, new Runnable() {
@Override
public void run() {
log.debugf("Installing component resolver for job '%s'...", job.getName());
ComponentResolverHelper helper = new ComponentResolverHelper(getTarget(), getUnit(), componentResolverServiceName);
try {
helper
.initializeInstantiator(rubyClassName, StringUtils.underscore(rubyClassName.trim()))
.initializeResolver(JobComponent.class, config, true) // Always create new instance
.installService(Mode.PASSIVE);
} catch (Exception e) {
log.errorf(e, "Couldn't install component resolver for job '%s' for deployment unit '%s'", job.getName(), getUnit());