//the service's input
byte[] array = FileUtils.readFileToByteArray(f1);
//the service call and it's result
DigitalObject digitalObject = extractor.migrate(
new DigitalObject.Builder(Content.byValue(array))
.build(), null, null, null).getDigitalObject();
byte[] results = IOUtils.toByteArray(digitalObject.getContent().getInputStream());
String xcdl = new String(results,"UTF-8");