* @return
* @throws GWTJahiaServiceException
*/
public GWTEditConfiguration getGWTEditConfiguration(JCRNodeWrapper contextNode, JCRSiteNode site, JahiaUser jahiaUser, Locale locale, Locale uiLocale, HttpServletRequest request, String name) throws GWTJahiaServiceException {
try {
EditConfiguration config = (EditConfiguration) SpringContextSingleton.getBean(name);
if (config != null) {
GWTEditConfiguration gwtConfig = new GWTEditConfiguration();
gwtConfig.setName(config.getName());
gwtConfig.setTopToolbar(createGWTToolbar(contextNode, site, jahiaUser, locale, uiLocale, request, config.getTopToolbar()));
gwtConfig.setSidePanelToolbar(createGWTToolbar(contextNode, site, jahiaUser, locale, uiLocale, request, config.getSidePanelToolbar()));
gwtConfig.setMainModuleToolbar(createGWTToolbar(contextNode, site, jahiaUser, locale, uiLocale, request, config.getMainModuleToolbar()));
gwtConfig.setContextMenu(createGWTToolbar(contextNode, site, jahiaUser, locale, uiLocale, request, config.getContextMenu()));
gwtConfig.setTabs(createGWTSidePanelTabList(contextNode, site, jahiaUser, locale, uiLocale, request, config.getTabs()));
gwtConfig.setEngineTabs(createGWTEngineList(contextNode, site, jahiaUser, locale, uiLocale, request, config.getEngineTabs()));
gwtConfig.setSitesLocation(config.getSitesLocation());
return gwtConfig;
} else {
throw new GWTJahiaServiceException("Bean. 'editconfig' not found in spring config file");
}
} catch (GWTJahiaServiceException e) {