public static EntityType getAndCheckEntityType(EntityDataModel entityDataModel, String typeName) {
        return checkIsEntityType(getAndCheckType(entityDataModel, typeName));
    }
public static EntityType getAndCheckEntityType ( EntityDataModel entityDataModel , String typeName ) { return checkIsEntityType ( getAndCheckType ( entityDataModel , typeName ) ) ; }
Gets the OData type with a specified name 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 typeName        The type name.
@return The OData entity type with the specified name.
@throws ODataSystemException If there is no OData type with the specified name or if the OData type is not
an entity type.