code: public <T> String serialize(T object) throws SerializationException {
  
  		if (object == null) {
  			return null;
  		}
  		
  		StringWriter writer = new StringWriter();
  		try {
  			Marshaller marshaller = MessageUtils.createMarshaller();
  			marshaller.marshal(object, writer);
  		} catch (JAXBException e) {
  			LOG.error("unable to marshall in XML Serializer", e);
  			throw new SerializationException(e);
  		}
  		String documentToPost = writer.toString();
  		LOG.debug("XML serialized data : " + documentToPost);
  		return documentToPost;
  	}
docs: {@inheritDoc}