*/
protected URI saveMessage(Node root, Message message) throws RepositoryException {
assertConfigured("saveMessage");
try {
URI messageURI = uriGenerator.generateMessageURI(message);
MessagePropertyFacade msgProps = new MessagePropertyFacade(message);
msgProps.setMessageId(messageURI.toString());
Node messageNode = root.addNode(messageURI.toString());
Node bodyNode = messageNode.addNode(JCRNodeNames.BODY_NODE_NAME);
Object messageBytes;
try {