public static Message getResponse(ClientProtos.CoprocessorServiceResponse result,
    Message responsePrototype) throws IOException {
    Message response;
    if (result.getValue().hasValue()) {
      Message.Builder builder = responsePrototype.newBuilderForType();
      builder.mergeFrom(result.getValue().getValue().newInput());
      response = builder.build();
    } else {
      response = responsePrototype.getDefaultInstanceForType();
    }
    if (LOG.isTraceEnabled()) {
      LOG.trace("Master Result is value=" + response);
    }
    return response;
  }
Returns the name to use for coprocessor service calls. For core HBase services (in the hbase.pb
protobuf package), this returns the unqualified name in order to provide backward compatibility
across the package name change. For all other services, the fully-qualified service name is
used.
hbase-client/src/main/java/org/apache/hadoop/hbase/ipc/CoprocessorRpcUtils.java