if (monitor.isCanceled()) {
result.reject();
throw new LocalCancellationException();
}
byte[] data = result.accept(monitor);
String fileListAsString;
try {
fileListAsString = new String(data, "UTF-8");
} catch (UnsupportedEncodingException e) {
fileListAsString = new String(data);