if (hibernateTemplate != null)
logger.debug("hibernateTemplate present - jBPM persistence service will be managed by Spring");
else {
if (dummy.getSessionFactory() != null) {
logger.debug("creating hibernateTemplate based on jBPM SessionFactory");
hibernateTemplate = new HibernateTemplate(dummy.getSessionFactory());
}
else
logger.debug("hibernateTemplate missing - jBPM will handle its own persistence");
}