anchor.diff:  //HConnection connection = HConnectionManager.createConnection(conf);
   //HTableInterface table = connection.getTable("users");
   
  -final SumRequest request = SumRequest.newBuilder().setFamily("salaryDet").setColumn("gross")
  -                            .build();
  +final Sum.SumRequest request = Sum.SumRequest.newBuilder().setFamily("salaryDet").setColumn("gross").build();
   try {
  -Map<byte[], Long> results = table.CoprocessorService (SumService.class, null, null,
  -new Batch.Call<SumService, Long>() {
  -    @Override
  -        public Long call(SumService aggregate) throws IOException {
  -BlockingRpcCallback rpcCallback = new BlockingRpcCallback();
  -            aggregate.getSum(null, request, rpcCallback);
  -            SumResponse response = rpcCallback.get();
  -            return response.hasSum() ? response.getSum() : 0L;
  +    Map<byte[], Long> results = table.coprocessorService(
  +        Sum.SumService.class,
  +        null,  /* start key */
  +        null,  /* end   key */
  +        new Batch.Call<Sum.SumService, Long>() {
  +            @Override
  +            public Long call(Sum.SumService aggregate) throws IOException {
  +                BlockingRpcCallback<Sum.SumResponse> rpcCallback = new BlockingRpcCallback<>();
  +                aggregate.getSum(null, request, rpcCallback);
  +                Sum.SumResponse response = rpcCallback.get();
  +
  +                return response.hasSum() ? response.getSum() : 0L;
  +            }
           }
  -    });
  +    );
  +
       for (Long sum : results.values()) {
           System.out.println("Sum = " + sum);
       }
   } catch (ServiceException e) {
  -e.printStackTrace();
  +    e.printStackTrace();
   } catch (Throwable e) {
       e.printStackTrace();
   }
  
positive.code: +
  [source, java]
  ----
  public class SumEndPoint extends SumService implements Coprocessor, CoprocessorService {
  
      private RegionCoprocessorEnvironment env;
  
  
negative.code:                 } catch (IOException ignored) {}
              }
          }
  
          done.run(response);
      }
  }
  