getResourceReferenceRegistry().registerResourceReference(pasteAsTextResource);
}
ResourceReference downloadPasteAsTextResource = new DownloadPasteAsTextResource();
if (pasteAsTextResource.canBeRegistered()) {
getResourceReferenceRegistry().registerResourceReference(downloadPasteAsTextResource);
}
getRootRequestMapperAsCompound().add(new PriorityResourceMapper("/private/${0}/text", pasteAsTextResource));
getRootRequestMapperAsCompound().add(new PriorityResourceMapper("/private/${0}/download", downloadPasteAsTextResource));