if (username == null) throw new LockingException("No User Provided.");
synchronized(lockSynchronizer) {
if(lockingUser == null)
lockingUser = username;
else if ((lockingUser != null) && (!lockingUser.equals(username)))
throw new LockingException("Resource already locked");
}