@Override
public void start(CoprocessorEnvironment e) throws IOException {
// this only makes sure that leases and locks are available to coprocessors
// from external packages
RegionCoprocessorEnvironment re = (RegionCoprocessorEnvironment)e;
Leases leases = re.getRegionServerServices().getLeases();
leases.createLease("x", null);
leases.cancelLease("x");
Integer lid = re.getRegion().getLock(null, Bytes.toBytes("some row"), true);
re.getRegion().releaseRowLock(lid);
}