private EntityContainer getEntityContainer ( ) throws ODataRenderException { EntityContainer entityContainer = entityDataModel . getEntityContainer ( ) ; if ( entityContainer == null ) { String message = "EntityContainer should not be null" ; LOG . error ( message ) ; throw new ODataRenderException ( message ) ; } return entityContainer ; }
Returns entity container if it exists in entity data model otherwise throws ODataRenderException .