void (Object component, String event) { Method method = (Method) get(component, event); if (method != null) { try { method.invoke(this, null); } catch (InvocationTargetException ite) { ite.getTargetException().printStackTrace(); } catch (Exception exc) { exc.printStackTrace(); } } }