throw new IllegalStateException("Tried to load a WAR but the current module is "+context.moduleInfo.getClass().getName());
}
WARInfo warInfo = (WARInfo)context.moduleInfo;
try {
ClassLoader loader = new URLClassLoader(new URL[]{warInfo.file.toURL()}, ClassLoader.getSystemClassLoader());
context.standardModule = new WebDeployableObject(warInfo.jarFile, loader);
} catch(MalformedURLException e) {
context.out.println("ERROR: "+warInfo.file+" is not a valid JAR file!");
context.moduleInfo = null;
return;
}