code: public static InternalKnowledgeBase newKnowledgeBase(String kbaseId,
                                                           KieBaseConfiguration conf) {
          return new KnowledgeBaseImpl( kbaseId, (RuleBaseConfiguration) conf);
      }
docs: Create a new KnowledgeBase using the given KnowledgeBaseConfiguration and
  the given KnowledgeBase ID.
  
  @param kbaseId
  A string Identifier for the knowledge base. Specially useful when enabling
  JMX monitoring and management, as that ID will be used to compose the
  JMX ObjectName for all related MBeans. The application must ensure all kbase
  IDs are unique.
  @return
  The KnowledgeBase