I found that StatefulKnowledgeSession instance can be created by the following two ways:
JPAKnowledgeService.newStatefulKnowledgeSession(...)
KnowledgeBase.newStatefulKnowledgeSession(...)
But,what the difference between the two methods above?