public static KeyBinding loadStrict(String filename, String keyname, String valuename) throws LoadingException, SchemaException { KeyBinding ret = load(filename); List<String> sch = ret.getSchemaIn(); if (keyname.equals(sch.get(0)) && valuename.equals(sch.get(1))) { return ret; } else { throw new SchemaException("[" + keyname + "," + valuename + "] != " + sch); } }