// If this module.gwt.xml file is one of the target modules that together make up this
// ModuleDef.
if (moduleDef.getTargetLibraryCanonicalModuleNames().contains(moduleName)) {
// Then save a copy of the xml file in the created library file.
libraryWriter.addBuildResource(new UrlResource(moduleURL, resName, lastModified));
}
} catch (UnableToCompleteException e) {
// The error has already been logged.
throw e;
} catch (Throwable e) {