code: 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;
      }
docs: Returns entity container if it exists in entity data model otherwise throws ODataRenderException.
  
  @return EntityContainer if it exist in entity data model
  @throws ODataRenderException if it is not exists in entity data model