@Override
  public GetActiveMasterResponse getActiveMaster(RpcController controller,
    GetActiveMasterRequest request) throws ServiceException {
    GetActiveMasterResponse.Builder builder = GetActiveMasterResponse.newBuilder();
    server.getActiveMaster()
      .ifPresent(name -> builder.setServerName(ProtobufUtil.toServerName(name)));
    return builder.build();
  }
Check if an OOME and, if so, abort immediately to avoid creating more objects.
@return True if we OOME'd and are aborting.
hbase-server/src/main/java/org/apache/hadoop/hbase/HBaseRpcServicesBase.java