/** Get the names of all collection roles */
 @Override
 public String[] getCollectionRoleNames() {
   if (sessionFactory == null) {
     return ArrayHelper.toStringArray(collectionStatistics.keySet());
   } else {
     return ArrayHelper.toStringArray(sessionFactory.getAllCollectionMetadata().keySet());
   }
 }
 @Override
 public Map getAllCollectionMetadata() {
   return delegate.getAllCollectionMetadata();
 }