public void loadIdentities() {
JbpmContext jbpmContext = jbpmConfiguration.createJbpmContext();
try {
Entity[] entities = IdentityXmlParser
.parseEntitiesResource("identity.db.xml");
IdentitySession identitySession = new IdentitySession(jbpmContext
.getSession());
for (int i = 0; i < entities.length; i++) {
identitySession.saveEntity(entities[i]);
}
} finally {
jbpmContext.close();
}
}