try {
writer.setContentData(resource, data, mimetype);
return;
} catch(IOException ex) {
log.error("could not write content, writer threw an IO Exception",ex);
throw new WritingNotSupportedException(ex.getMessage(),ex);
}
}
}
throw new WritingNotSupportedException("no writer found for resource "+resource);
}