code: private void initEntityMetadata(Entity entity) {
      String kind = entity.kind();
      if (kind.trim().length() == 0) {
        kind = entityClass.getSimpleName();
      }
      entityMetadata = new EntityMetadata(entityClass, kind);
    }
docs: Initializes the metadata using the given {@link Entity} annotation.
  
  @param entity
  the {@link Entity} annotation.