@Override public GetBlockKeysResponseProto getBlockKeys(RpcController unused, GetBlockKeysRequestProto request) throws ServiceException { ExportedBlockKeys keys; try { keys = impl.getBlockKeys(); } catch (IOException e) { throw new ServiceException(e); } GetBlockKeysResponseProto.Builder builder = GetBlockKeysResponseProto.newBuilder(); if (keys != null) { builder.setKeys(PBHelper.convert(keys)); } return builder.build(); }