refactoring SchemaNominator.java