code: public void registerParameters(IGenerator<? extends IChemObject> generator) {
          for (IGeneratorParameter<?> param : generator.getParameters()) {
              try {
                  renderingParameters.put(param.getClass().getName(),
                                          param.getClass().newInstance());
              } catch (InstantiationException | IllegalAccessException e) {
                  throw new IllegalStateException("Could not create a copy of rendering parameter.");
              }
          }
      }
docs: Registers rendering parameters from {@link IGenerator}s
  with this model.
  
  @param generator