Support for substituting a contextModel into an extension's url (in Java code)