}
@Override
public Statistics getChild(String childName) {
return childrenStatistics.get(childName);
}
<BUG>static final org.hibernate.stat.Statistics getStatistics(final EntityManagerFactory entityManagerFactory) {
HibernateEntityManagerFactory entityManagerFactoryImpl = (HibernateEntityManagerFactory) entityManagerFactory;</BUG>
SessionFactory sessionFactory = entityManagerFactoryImpl.getSessionFactory();
if (sessionFactory != null) {
return sessionFactory.getStatistics();

}
@Override
public Statistics getChild(String childName) {
return childrenStatistics.get(childName);
}
static final org.hibernate.stat.Statistics getStatistics(final EntityManagerFactory entityManagerFactory) {
if (entityManagerFactory == null) {
return null;
}
HibernateEntityManagerFactory entityManagerFactoryImpl = (HibernateEntityManagerFactory) entityManagerFactory;
SessionFactory sessionFactory = entityManagerFactoryImpl.getSessionFactory();
if (sessionFactory != null) {
return sessionFactory.getStatistics();
