refactoring SchemaDecider.java