CMS-3562 Make portal module work in OSGi. Using singleton jaxrs resources.