public DefaultGenerator(DependencyManager mgr,TransformFactory... factories){
  this.factories=Arrays.asList(requireNonNullElements(factories));
  this.mgr=requireNonNull(mgr);
  this.renderStack=new DefaultRenderStack();
}

public DefaultGenerator ( DependencyManager mgr , TransformFactory ... factories ) { this . factories = Arrays . asList ( requireNonNullElements ( factories ) ) ; this . mgr = requireNonNull ( mgr ) ; this . renderStack = new DefaultRenderStack ( ) ; }
creates a new generator .
