List<Class<GemGenerator>> factoryClasses = getFactoryClasses();
for (final Class<GemGenerator> factoryClass : factoryClasses) {
try {
GemGenerator factoryInstance = factoryClass.getConstructor(new Class[0]).newInstance(new Object[0]);
generateMenu.add(makeNewMenuItem(getFactoryAction(factoryInstance)));
} catch (NoSuchMethodException ex) {
System.out.println("Warning: factory class does not define default constructor: " + factoryClass);