public void receiveMessage(final String message)	{
		final String messageType = messageParser.getMessageType(message);
		if (messageType.equals(Messages.clientGrantLock))	{
			takeLock(messageParser.getMessageContent(message));
		}
		else if (messageType.equals(Messages.clientLockReleased))	{
			System.out.println("Client with IP " + ip + " succesfully released the lock named \""
					+ messageParser.getMessageContent(message) + "\"");
		}
		else if (messageType.equals(Messages.clientRefuseLock))	{
			System.out.println("Client with IP " + ip + " was refused the lock named \"" 
					+ messageParser.getMessageContent(message) + "\"");
		}
	}