code: public String registerHandler(GFXEventHandler handler) {
          String uuid = UUID.randomUUID().toString();
          handlers.put(uuid, handler);
          return uuid;
      }
docs: Registers a handler and returns the callback key to be passed to
  Javascript.
  
  @param handler Handler to be registered.
  @return A String random UUID that can be used as the callback key.