public static void unwrap(Message message,
			RoomMessageListener roomMessageListener) {
		if (!(message instanceof ObjectMessage))
			return;
		Object messagePayload = null;

		try {
			messagePayload = ((ObjectMessage) message).getObject();
		} catch (JMSException e) {
			e.printStackTrace();
		}

		if (!(messagePayload instanceof RoomMessage))
			return;

		final RoomMessage roomMessage = (RoomMessage) messagePayload;
		switch (roomMessage.getType()) {
		case TextMessage:
			roomMessageListener.onTextMessage((TextMessage) roomMessage);
			break;
		case PartialsPackageRequest:
			roomMessageListener.onPartialsPackageRequest((PartialsPackageRequest) roomMessage);
			break;
		case PartialsPackageReply:
			roomMessageListener.onPartialsPackageReply((PartialsPackageReply) roomMessage);
			break;
		case NewPartialsPackage:
			roomMessageListener.onNewPartialsPackage((NewPartialsPackage) roomMessage);
			break;
		}
	}