public void init(WebApp wapp) throws Exception {
// use ZK PE's widget implementation if available
LanguageDefinition langDef = LanguageDefinition.getByExtension("zul");
ComponentDefinition colorButtonDef = langDef
.getComponentDefinitionIfAny("colorbutton");
if (colorButtonDef != null && WebApps.getFeature("pe")) {
colorButtonDef.setDefaultWidgetClass("zssappex.Colorbutton");
}
initResources(wapp);
}