code: public boolean addMapping(String hostName, String contextPath, String globalName) {
          log.info("Add mapping global: {} host: {} context: {}", new Object[] { globalName, hostName, contextPath });
          final String key = getKey(hostName, contextPath);
          log.debug("Add mapping: {} => {}", key, globalName);
          return (mapping.putIfAbsent(key, globalName) == null);
      }
docs: Map key (host + / + context path) and global scope name
  
  @param hostName
  Host name
  @param contextPath
  Context path
  @param globalName
  Global scope name
  @return true if mapping was added, false if already exist