long getNextHandle(FileHandle handle) {
		while (true)
		{
			long handleTest = rand.nextLong();
			if (handleTest < 0)
				handleTest *= -1;
			if (handleTest == 0)
				continue;
			
			synchronized (handles)
			{
				if (!handles.containsKey(handleTest))
					handles.put(handleTest, handle);
			}
			return handleTest;
		}
	}