protected Theme getTheme() {
if (null == theme) {
ThemeStack themestack = (ThemeStack) stack.getContext().get(Theme.THEME_STACK);
if (null != themestack) {
theme = themestack.peek();
}
if (null == theme) {
theme = (Theme) stack.getContext().get(Theme.THEME);
}
return theme;