@Override
      public Object getResult() {
        return switch (response.getType()) {
          case NONE, UNAUTHORIZED -> null;
          case SUCCESS -> ((JsonRpcSuccessResponse) response).getResult();
          case ERROR -> ((JsonRpcErrorResponse) response).getError();
        };
      }
Init the service

@param inProcessRpcMethods set of RPC methods that can be called
app/src/main/java/org/hyperledger/besu/services/RpcEndpointServiceImpl.java