This method does not work for me, it just returns null, I can see my module in the ApplicationInstance.modulelist debugger and it has the same name I am passing in.
I.e.
Object module = (Object)appInst.getModuleInstance(ModName);
Returns Null
FYI the below does work though
ModuleList ml = appInst.getModuleList();
Map<String, Object> mp = ml.getModuleItems();
Object module = mp.get(ModName);
Returns my Module object