static Map callAllMethodsInInterface(O o, Class intrface) { new TreeMap map; for (Method m : intrface.getDeclaredMethods()) { if (!empty(m.getParameterTypes())) continue; S name = m.getName(); try { map.put(name, call(o, name)); } catch e { map.put(name, e); } } ret map; }