/** Get the names of all entities */
 @Override
 public String[] getEntityNames() {
   if (sessionFactory == null) {
     return ArrayHelper.toStringArray(entityStatistics.keySet());
   } else {
     return ArrayHelper.toStringArray(sessionFactory.getAllClassMetadata().keySet());
   }
 }
 @Override
 public Map<String, ClassMetadata> getAllClassMetadata() {
   return delegate.getAllClassMetadata();
 }