class ServerLockCleaner {

  public static PrimaryLock getPrimaryLockWithColumn(ThemisLock lock) {
    if (lock.isPrimary()) {
      return (PrimaryLock)lock;
    } else {
      PrimaryLock primaryLock = new PrimaryLock();
      primaryLock.setColumn(((SecondaryLock)lock).getPrimaryColumn());
      ThemisLock.copyThemisLock(lock, primaryLock);
      primaryLock.addSecondaryColumn(lock.getColumn(), lock.getType());
      return primaryLock;
    }
  }

  public  ServerLockCleaner(HConnection conn, ThemisCoprocessorClient cpClient);

}