code: function registerResourcePath(sResourceNamePrefix, sUrlPrefix) {
  		sResourceNamePrefix = String(sResourceNamePrefix || "");
  
  		if ( sUrlPrefix == null ) {
  
  			// remove a registered URL prefix, if it wasn't for the empty resource name prefix
  			if ( sResourceNamePrefix ) {
  				if ( mUrlPrefixes[sResourceNamePrefix] ) {
  					delete mUrlPrefixes[sResourceNamePrefix];
  					log.info("registerResourcePath ('" + sResourceNamePrefix + "') (registration removed)");
  				}
  				return;
  			}
  
  			// otherwise restore the default
  			sUrlPrefix = DEFAULT_BASE_URL;
  			log.info("registerResourcePath ('" + sResourceNamePrefix + "') (default registration restored)");
  
  		}
  
  		// cast to string and remove query parameters and/or hash
  		sUrlPrefix = pathOnly(String(sUrlPrefix));
  
  		// ensure that the prefix ends with a '/'
  		if ( sUrlPrefix.slice(-1) !== '/' ) {
  			sUrlPrefix += '/';
  		}
  
  		mUrlPrefixes[sResourceNamePrefix] = {
  			url: sUrlPrefix,
  			// calculate absolute URL, only to be used by 'guessResourceName'
  			absoluteUrl: resolveURL(sUrlPrefix)
  		};
  	}
docs: Adds a resource path to the resources map.
  
  @param {string} sResourceNamePrefix prefix is used as map key
  @param {string} sUrlPrefix path to the resource