fileTarget.set("content", IOUtils.toString(new InputStreamReader((InputStream) data, charSet == null ? "UTF-8" : charSet)));
else
fileTarget.set("content", new String((byte[]) data, charSet == null ? "UTF-8" : charSet));
} else {
if (data instanceof InputStream)
fileTarget.set("content", new BinaryData((InputStream) data));
else
fileTarget.set("content", new BinaryData((byte[]) data));
}
return fileTarget;
}