code: @SuppressWarnings("unchecked")
      protected void extractHibernateMetadata(SessionFactory sessionFactory) {
          this.classMetadata.addAll(sessionFactory.getAllClassMetadata().values());
          this.collectionMetadata.addAll(sessionFactory.getAllCollectionMetadata().values());
          this.hibernateConfigured = true;
      }
docs: Extracts all {@link ClassMetadata} and {@link CollectionMetadata} from a given {@link SessionFactory} to be
  used in determining the types that need a {@link org.springframework.flex.core.io.SpringPropertyProxy} registered in {@link #findTypesToRegister()}
  @param sessionFactory the session factory from which to read metadata