LPS-40203 Remove needless checking for velocityTemplateId.
LPS-40203  Add local variable to avoid invoking methods in loop
LPS-40203 Remove needless condition checking in taglib/portlet/icon_options/page.jsp
LPS-40203 No need to use Validator in login.jsp
LPS-40203 Remove duplicate call in top_head.jsp.
LPS-40203 Source formatting
LPS-40203 Just use the implicit permissionChecker object. It's the same as themeDisplay.getPermissionChecker(). See  *.theme.DefineObjectsTag
LPS-40203 Those are not expensive operations?
LPS-40203 SF
LPS-40203 It is possible for someone to pass in a "" and it'd be incorrect. So previous check was right.
LPS-40203 This operation is cheap. Unless something is actually expensive, readability trumps performance.
LPS-40203 Better var name