.setPattern("/atom/([^/#?]+);categories", TargetType.TYPE_CATEGORIES, "collection")
.setPattern("/atom/([^/#?;]+)(\\?[^#]*)?", TargetType.TYPE_COLLECTION, "collection")
.setPattern("/atom/([^/#?]+)/([^/#?]+)(\\?[^#]*)?", TargetType.TYPE_ENTRY, "collection", "entry")
.setPattern("/search", OpenSearchFilter.TYPE_OPENSEARCH_DESCRIPTION));
setTargetBuilder(new TemplateTargetBuilder().setTemplate(TargetType.TYPE_SERVICE, "{target_base}/atom")
.setTemplate(TargetType.TYPE_COLLECTION,
"{target_base}/atom/{collection}{-opt|?|q,c,s,p,l,i,o}{-join|&|q,c,s,p,l,i,o}")
.setTemplate(TargetType.TYPE_CATEGORIES, "{target_base}/atom/{collection};categories")
.setTemplate(TargetType.TYPE_ENTRY, "{target_base}/atom/{collection}/{entry}")
.setTemplate(OpenSearchFilter.TYPE_OPENSEARCH_DESCRIPTION, "{target_base}/search"));