InitialContext ic = CVUtility.getInitialContext();
KnowledgeBaseLocalHome home = (KnowledgeBaseLocalHome) ic.lookup("local/KnowledgeBase");
KnowledgeBaseLocal remote = home.create();
remote.setDataSource(this.dataSource);
ctx.getUserTransaction().begin();
kbid = remote.insertKB(userId, kbinfo);
ctx.getUserTransaction().commit();
} catch (Exception e) {
logger.error("[insertKB]: Exception", e);
return 1;
}