}
if(decoded != null) {
return new ByteArrayRawData(decoded, complex.getMimeType());
} else {
return new StringRawData(inputData.toString(), complex.getMimeType());
}
} else {
Object inputData = complex.getData().get(0);
String encoding = complex.getEncoding();