* @param key The key to lock
* @param timeout in milliseconds; -1 means wait indefinitely, 0 means no wait.
*/
public void readLock(EntityKey key, int timeout) {
ReadWriteLock lock = getLock( key );
Lock readLock = lock.readLock();
acquireLock( key, timeout, readLock );
}
private ReadWriteLock getLock(EntityKey key) {
ReadWriteLock newLock = new ReentrantReadWriteLock();