public String getMimeType(Object value, Operation operation) {
return "application/xml";
}
public void write(Object value, OutputStream output, Operation operation) throws IOException {
TransformerBase tx = (TransformerBase)value;
try {
tx.transform(operation.getParameters()[0], output);
} catch (TransformerException e) {
throw (IOException)new IOException().initCause(e);
}
return;