public String getMimeType(Object value, Operation operation) {
Object request = operation.getParameters()[0];
if(request instanceof GetExecutionStatusType) {
return "text/xml";
} else if(request instanceof GetExecutionResultType) {
GetExecutionResultType ger = (GetExecutionResultType) request;
if(ger.getMimeType() != null) {
return ger.getMimeType();
} else {
// generic binary output...
return "application/octet-stream";
}
} else {