public boolean lockResource(int transactionId, int resourceId) throws RemoteException
	{
		Resource r = resources.get(resourceId);
		//deadLockResource = resourceId;
		String tID = transactionId + "";
		Server s = getServer(Integer.parseInt(tID.charAt(0) + ""));
		boolean result = r.lock(transactionId, resourceId, this);
		if (gui != null)
			gui.updateResourceTable(resources);

		return result;
	}