static Generator create(DependencyManager mgr, TransformFactory factory) {
        return new GeneratorImpl(mgr, factory);
    }
Creates and returns a new Generator.

@param mgr      the dependency manager to use
@param factory  the factory to use
@return a new Generator

@throws NullPointerException if any of the provided
parameters are {@code null}
common-parent/codegen/src/main/java/com/speedment/common/codegen/Generator.java