private Action tryEmptyConstructor(final Class aClass) throws Exception { for (final Constructor constructor : aClass.getConstructors()) { final Class[] types = constructor.getParameterTypes(); if (types == null || types.length == 0) { return (Action) aClass.newInstance(); } } return null; }