LPS-48313 the previous logic was not valid because some OSGI plugins still have docroot/WEB-INF/web.xml but docroot/WEB-INF/lib
LPS-48313 Revert commits from 6c7e1914168d7288351a8cb21499bd07f19cc105 to c4f0e4c1d9d313456b7b0c515a5cd0162ff76b77