public Generator(String outputDirectory, String packageName, String regexFilename, String importDirectory, List<String> importPackages, boolean promptForComplexValueTypes) throws IOException, ClassNotFoundException {
this.packageName = packageName;
System.out.println("Package name is '" + this.packageName + "'");
this.outputDirectory = outputDirectory;
System.out.println("Output directory is '" + this.outputDirectory + "'");
this.generatedClassManager = new GeneratedClassManager(outputDirectory, packageName);
this.promptForComplexValueTypes = promptForComplexValueTypes;
File regexFile = new File(regexFilename);
if (regexFile.exists()) {
System.out.println(String.format("Using regex file '%s'", regexFilename));
RegexFilter regexFilter = objectMapper.readValue(regexFile, new TypeReference<RegexFilter>() {