strategy = new MatcherStrategy(matchers); if (g.getStrategy().getName() != null) { if (!DefaultGeneratorStrategy.class.getName().equals(g.getStrategy().getName())) log.warn("WARNING: Matchers take precedence over custom strategy. Strategy ignored: " + g.getStrategy().getName()); Class<GeneratorStrategy> strategyClass = (Class<GeneratorStrategy>) (!isBlank(g.getStrategy().getName()) ? loadClass(trim(g.getStrategy().getName())) : DefaultGeneratorStrategy.class); strategy = strategyClass.newInstance();