LPS-37994 util to help determine control panel case
LPS-37994 apply it
LPS-37994 Remove unthrown exceptions
LPS-37994 It's weird having a ConfigurationUtil and a PortletConfigurationUtil. I think calling it PortletConfigurationLayoutUtil at least shows it's for a layout?