code: public KnowledgeRuntimeManager newRuntimeManager(KnowledgeRuntimeManagerType type) {
          RuntimeManager runtimeManager;
          final String identifier = _identifierRoot + IDENTIFIER_COUNT.incrementAndGet();
          final ClassLoader origTCCL = Classes.setTCCL(_classLoader);
          try {
              runtimeManager = _runtimeManagerBuilder.build(type, identifier);
          } finally {
              Classes.setTCCL(origTCCL);
          }
          return new KnowledgeRuntimeManager(_classLoader, type, _serviceDomainName, _serviceName, runtimeManager, _persistent, _channelBuilders, _loggerBuilders);
      }
docs: Creates a new KnowledgeRuntimeManager.
  
  @param type the KnowledgeRuntimeManagerType
  @return the new KnowledgeRuntimeManager