title: Drools KnowledgeBase Deprecated
body: <p>I am integrating the Drools Rules engine into my application. 99% of the examples I have found to get started look like:</p>
  
  <pre><code>KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder();
  kbuilder.add( ResourceFactory.newUrlResource( url ),
                        ResourceType.DRL );
  if ( kbuilder.hasErrors() ) {
      System.err.println( builder.getErrors().toString() );
  }                     
  
  KnowledgeBase kbase = KnowledgeBaseFactory.newKnowledgeBase();
  kbase.addKnowledgePackages( builder.getKnowledgePackages() );
  
  StatefulKnowledgeSession ksession = knowledgeBase.newStatefulKnowledgeSession();
  ksession.insert( new Fibonacci( 10 ) );
  ksession.fireAllRules();
  
  ksession.dispose();
  </code></pre>
  
  <p>I have something similar working, but my question is that <code>KnowledgeBase</code> is marked as deprecated, which is a red flag to me that I am doing it wrong. Now <code>KnowledgeBaseFactory.newKnowledgeBase()</code> is not marked deprecated, but it also returns a <code>KnowledgeBase</code> type.</p>
  
  <p>So what should I be using since KnowledgeBase is deprecated?</p>