LPS-44460 AutoDeploy throws error with combined portlet and template WAR
LPS-44460 Simplify, isMatchingFile() implies !isJarFile(), use methods rather than explicit file checks
LPS-44460 Account for rails-like and php portlets that contain hooks
LPS-44460 add missed import class and remove unused var
LPS-44460 Since the log message says "only one should have", use an order of preference on all plugins to ensure it