LPS-44175 SF
LPS-44218  Avoid using Pattern.matches() whenever possible
LPS-43428 - Make the screenshots all generic, so it's easier to move them along with "report.html"
LPS-44099 fix tests
LPS-44099 SF
LPS-42569 If there is a virtualHostName we should return it even if canonicalURL is false or if the virtualHostName doesn't match the portalDomain (because the virtual hostname of the site can be different than the portal virtualhostname)
LPS-42569 We cannot use the canonical URL at this point because the canonical URL doesn't understand of localized layout friendly urls. We need to use the layoutURL. I have checked the use cases of LPS-35768 and it's not breaking them.
LPS-42569 We don't need to addPreservedParameter because it's already been done vi getLayoutURL method in PortalImpl
Revert "LPS-44052 Source formatting"

This reverts commit dcf684b144a54882679cc120be08e0d170e4c072.
Revert "LPS-44052 don't use url.openConnection if url is file (helps JBoss WildFly)."

This reverts commit 347e568b41fc9af29abf4531309d3e157d6ece19.
Revert "LPS-44052 Do not leave file handles open"

This reverts commit ecd8840fde81e5995b911466c6701893e6d4f487.
LPS-44052 A cleaner solution
LPS-44052 Source formatting
LPS-44153 LayoutTypePortletImpl#setLayoutTemplateId should call getLayoutTemplate() on the instance instead of a service to get the oldLayoutTemplate

The current logic cannot handle that situation, when there is a "layout-template-id" set in "typeSettings", but the requested template does not exist.

This way users will be able to change template association for a given layout, even if the current template is missing for any reasons



Signed-off-by: Tibor Lipusz <tibor.lipusz@liferay.com>
LPS-43143
LPS-44144 Change wrong method invocation
LPS-41012 fix wrong parameter read
LPS-41012 move code to Java class (no changes)
LPS-44235 if the field is localized for a languageId, we need to consider that in the forLabel and the name
LPS-44235 SF