LPS-46832 Accessing control panel URL on Weblogic throws IllegalStateException
LPS-46832 Source Formatting
LPS-46832 It is no longer necessary to set the attribute in the req again since the get does it.

This was left over code from before the get method was added.
LPS-46832 Extract the processing of Control Panel redirects to its own method

This is the first step to invoke that method from a different place. This is necessary because the code inside the method added in the previous commits invokes several methods which require the ThemeDisplay in the request and it is not available until initThemeDisplay() finishes.
Since the goal is to move this method else where the goal has been to not pass any parameters other than request and response and make it more explicit that the method needs the ThemeDisplay available (ideally it would be explained in the Javadoc, but there are not javadocs in this class)
LPS-46832 Move invocation of processControlPanelRedirects() to after the initialization of ThemeDisplay since it depends on it.
LPS-46832 Simplify processControlPanelRedirects()
LPS-46832 SF
LPS-46832 Avoid potential NullPointedException

This is not introduced by the changes in this ticket, but I found them while working on it and while they don't cause any known bug they are a time bomb and I prefer to prevent the future problems proactively.
LPS-46832 This is not possible, see "if (layout != null) {" at line 938
LPS-46832 SF