If someone is not in a web environment, i even doubt if the WebModuleUtil will be on the classpath to compile there code, rather throw an exception in getModuleWebFolder as i earlier suggested