code: @Override
      public ProcessorResult handleWrite(Object action) throws ODataException {
          Operation operation;
          if (action instanceof Operation) {
              operation = (Operation) action;
              Object data = operation.doOperation(getODataRequestContext(), getDataSourceFactory());
              if (data == null) {
                  return new ProcessorResult(ODataResponse.Status.NO_CONTENT);
              } else {
                  return new ProcessorResult(ODataResponse.Status.CREATED, QueryResult.from(data));
              }
          } else {
              throw new ODataBadRequestException("Incorrect operation instance");
          }
      }
docs: Handles action call and returns result in case when action returns it.
  
  @param action The instance of action.
  @return The result of calling action.
  @throws ODataException in case of any error.