Window myWindow = getWindowControl().getWindowBackOffice().getWindow();
CustomCSS currentCustomCSS = (CustomCSS) myWindow.getAttribute(CURRENT_CUSTOM_CSS_KEY);
if (currentCustomCSS != null) {
// remove css and js from view
mainVc.remove(currentCustomCSS.getJSAndCSSComponent());
myWindow.removeAttribute(CURRENT_CUSTOM_CSS_KEY);
}
}
/**
* Add a custom css to the view and mark it as the curent custom CSS.