code: protected boolean isEntityQuery(ODataUri uri, EntityDataModel entityDataModel) {
          return getTargetType(uri, entityDataModel).map(t -> t.getMetaType() == MetaType.ENTITY).orElse(false);
      }
docs: Check if the parsed OData URI is a query and it results in an entity or a collection of entities.
  
  @param uri             The parsed OData URI.
  @param entityDataModel The Entity Data Model.
  @return {@code true} if it is about an entity query.