public void writeTo(T t,
Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType,
MultivaluedMap<String, Object> httpHeaders,
OutputStream outputStream) throws IOException
{
try
{
LogMessages.LOGGER.debugf("Provider : %s, Method : writeTo", getClass().getName());
Marshaller marshaller = getMarshaller(type, annotations, mediaType);
marshaller = decorateMarshaller(type, annotations, mediaType, marshaller);
marshaller.marshal(t, outputStream);
}
catch (JAXBException e)
{
throw new JAXBMarshalException(e);
}
}