response.setContentType("application/atomsvc+xml; charset=utf-8");
Service service = abderaFactory.newService();
//service.setText("service");
Workspace workspace = abderaFactory.newWorkspace();
workspace.setTitle("resource");
String href = request.getRequestURL().toString();
href = href.substring(0, href.length() - "/atomsvc".length());
Collection collection = workspace.addCollection("collection", "atom/feed");
collection.setTitle("entries");
collection.setAttributeValue("href", href);
collection.setAccept("entry");
collection.addCategories().setFixed(false);
workspace.addCollection(collection);
service.addWorkspace(workspace);
//FIXME add prettyPrint support
try {