private CommandBuilder getCommandBuilder(String processorId) {
    String cmdBuilderClassName = taskConfig.getCommandClass(ShellCommandBuilder.class.getName());
    CommandBuilder cmdBuilder = ReflectionUtil.getObj(cmdBuilderClassName, CommandBuilder.class);

    cmdBuilder.setConfig(config).setId(processorId).setUrl(state.jobModelManager.server().getUrl());
    return cmdBuilder;
  }
Returns a command builder with the build environment configured with the processorId.
@param processorId to configure the builder with.
@return the constructed builder object
samza-core/src/main/java/org/apache/samza/clustermanager/ContainerAllocator.java