// iterate over all possible writers; if the pattern matches, try to store the content and return
for(Pattern p : writerMap.keySet()) {
if(p.matcher(resource.toString()).matches()) {
ContentWriter writer = writerMap.get(p);
try {
writer.deleteContent(resource,"");
return true;
} catch(IOException ex) {
log.error("could not write content, writer threw an IO Exception",ex);
throw new WritingNotSupportedException(ex.getMessage(),ex);
}