Right now this would throw a ClassCastException if the instantiated class wasn't an instance of Module. I think it would be more clear to do this in two steps:
```
Class<?> c = Class.forName(moduleName);
if(Module.class.isAssignableFrom(c)) {
  Module module = (Module)c.newInstance();
}
else {
  error(...);
}
```