code: public static EntityType getAndCheckEntityType(EntityDataModel entityDataModel, Class<?> javaType) {
          return checkIsEntityType(getAndCheckType(entityDataModel, javaType));
      }
docs: Gets the OData type for a Java type and checks if the OData type is an entity type; throws an exception if the
  OData type is not an entity type.
  
  @param entityDataModel The entity data model.
  @param javaType        The Java type.
  @return The OData entity type for the Java type.
  @throws ODataSystemException If there is no OData type for the specified Java type or if the OData type is not
  an entity type.