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

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

		if (!(messagePayload instanceof CoreMessage))
			return;

		final CoreMessage coreMessage = (CoreMessage) messagePayload;
		switch (coreMessage.getType()) {
		case GetRoomRequest:
			coreMessageListener.onGetRoomRequest((GetRoomRequest) coreMessage);
			break;
		case GetRoomReply:
			coreMessageListener.onGetRoomReply((GetRoomReply) coreMessage);
			break;
		default:
			break;
		}
	}