XE-1270: Ensure we don't have duplicate classes in the generated WAR's WEB-INF/lib directory
* Fix the issue with legacy modules