}
if (content.hasProperty(Constants.JCR_DATA)) {
content.getProperty(Constants.JCR_DATA).remove();
}
try {
content.setProperty(Constants.JCR_DATA, new BinaryImpl(is));
} catch (IOException e) {
logger.error(e.getMessage(), e);
}
if (contentType == null) {
contentType = "application/binary";