code: private EntityMetadata getMetadata(Class<?> clazz)
      {
          EntityMetadata metadata = KunderaMetadataManager.getEntityMetadata(kunderaMetadata, clazz);
          if (metadata == null)
          {
              log.error("Entity metadata not found for {}, possible reasons may be: "
                      + "1) not annotated with @Entity. 2) is annotated with @MappedSuperclass."
                      + "3) does not properly with mapped persistence unit for persistence unit and keyspace. Please verify with @Table annotation or persistence.xml "
                      + clazz);
              throw new KunderaException("Entity metadata not found for " + clazz.getName());
          }
          return metadata;
      }
docs: Gets the metadata.
  
  @param clazz
  the clazz
  @return the metadata