code: public void registerURItoSecurityDomain(URI uri, String name) throws URISyntaxException
  	{
  		if (uri == null) throw new IllegalArgumentException("URI parameter cannot be null");
  		if (! securityDomains.containsKey(name) ) throw new IllegalArgumentException("Security domain "+name+" is not a configured security domain.");
  		if (uriToSecurityDomain.containsKey(uri)) uriToSecurityDomain.remove(uri);
  		uriToSecurityDomain.put(formatKey(uri), name);
  		if (LOGGER.isDebugEnabled())
  			LOGGER.debug("Security domain "+name+" has been registered for URI "+uri.toString());
  	}
docs: Registers the association of the given URI to the named security domain. Registration is only needed when a URI needs to use
  a security domain other than the default domain.
  <br>If the URI was previously registered with another domain that association is replaced with this new one.
  @param uri URI to register, may not be null
  @param name of SecurityDomain to associate
  @throws URISyntaxException
  @throws {@link IllegalArgumentException If the specified domain doesn't exist, or if the URI is null