private static Pattern[] compileAll(String... regexp) {
        final Set<Pattern> patterns = Stream.of(regexp)
            .map(Pattern::compile)
            .collect(Collectors.toSet());

        return patterns.toArray(new Pattern[patterns.size()]);
    }
Instantiates the JavaGenerator using an array of custom 
{@link TransformFactory}.
<p>
Warning! If you use this constructor, no transforms will be installed
by default!

@param factory  the transform factory to use
common-parent/codegen/src/main/java/com/speedment/common/codegen/internal/java/JavaGenerator.java