/**
  * Generate Part Code for a given Component.
  *
  * @param node the component
  * @param part the component's part
  * @return the generated code
  * @throws CodeGeneratorException if an error occurs during Code Generation
  */
 @Override
 public String generateComponentCode(INode node, ECodePart part) throws CodeGeneratorException {
   return partGeneratorManager
       .createNodePartBuilder()
       .setNode(node)
       .setPart(part)
       .append(ECamelTemplate.PART_HEADER)
       .appendContent()
       .append(ECamelTemplate.PART_FOOTER)
       .build()
       .toString();
 }
 /**
  * Parse Process, and generate Code for Context Variables.
  *
  * @param designerContext the context to generate code from
  * @return the generated code
  * @throws CodeGeneratorException if an error occurs during Code Generation
  */
 @Override
 public String generateContextCode(IContext designerContext) throws CodeGeneratorException {
   return partGeneratorManager.generateContextCode(designerContext);
 }
 /**
  * Generate the code for the process given to the constructor.
  *
  * @return the generated code
  * @throws CodeGeneratorException if an error occurs during Code Generation
  */
 @Override
 public String generateProcessCode() throws CodeGeneratorException {
   JetUtil.checkEmittersPoolFactoryIsReady();
   return partGeneratorManager.generateProcessCode();
 }
 @Override
 public void setContextName(String contextName) {
   partGeneratorManager.getArgumentBuilder().setContextName(contextName);
 }