Update Module.java

Changed addresses param to msgTypes in getHandlers.