template = SessionRequestMessageTemplate.getInstance();
} else if (messageClass == SessionResponseMessage.class) {
template = SessionResponseMessageTemplate.getInstance();
}
return (Message) template.deserialize(mapper.readTree(bytes));
}
public <Message extends RexProMessage> byte[] serialize(Message message, Class<Message> messageClass) throws IOException {
RexProMessageTemplate template = null;