class LockCollection implements LockFactory.DistributedLock {

    @Override
    public void close()
    {
        for (LockFactory.DistributedLock lock : myLocks)
        {
            try
            {
                lock.close();
            }
            catch (Exception e)
            {
                LOG.warn("Unable to release lock {} ", lock, e);
            }
        }
    }

    public  LockCollection(Collection<? extends LockFactory.DistributedLock> locks);

}