// private static LockToken currentLock;
public final LockResult lock(LockTimeout lockTimeout, LockInfo lockInfo, String uid)
{
// Logger.debug("Lock : " + lockTimeout + " info : " + lockInfo + " on resource : " + getName() + " in : " + parent);
LockToken token = new LockToken();
token.info = lockInfo;
token.timeout = LockTimeout.parseTimeout("30");
token.tokenId = uid;
locks.put(uid, token);
// LockToken currentLock = token;