code: public boolean register(E e, String name) {
          if (resolve.containsKey(name)) {
              return false;
          }
          resolve.put(name, e);
          rev.put(e, name);
          return true;
      }
docs: Register the name of an element.
  
  @param e    the element to register
  @param name the element name. Must be globally unique
  @return {@code true} if the association has been established, {@code false} if the name is already used
  for another element