code: private Type getRequestType(ODataRequest oDataRequest, ODataUri oDataUri) throws ODataTargetTypeException {
          TargetType targetType = WriteMethodUtil.getTargetType(oDataRequest, entityDataModel, oDataUri);
          return entityDataModel.getType(targetType.typeName());
      }
docs: Returns request type for the given odata uri.
  @param oDataUri the odata uri
  @return the request type
  @throws ODataTargetTypeException if unable to determine request type