code: public Factory registerObject(Object obj, String id, boolean visible) {
          String canonicalID = createKey(id).canonicalID();
          return registerFactory(new SimpleFactory(obj, canonicalID, visible));
      }
docs: Register an object with the provided id.  The id will be
  canonicalized.  The canonicalized ID will be returned by
  getVisibleIDs if visible is true.