code: public void add(String[] types, OsgiModelSource<?> source) {
          for (String resourceType : types) {
              this.typeNameToModelSourcesMap.put(resourceType, source);
          }
          clearLookupCaches();
      }
docs: Adds the type[] -&t; model relationship to the registry.
  
  @param types  must not be <code>null</code>.
  @param source must not be <code>null</code>.