//register ZK scopes
final BeanDefinitionBuilder builder =
BeanDefinitionBuilder.rootBeanDefinition(CustomScopeConfigurer.class);
final Map scopes = new HashMap();
scopes.put("application", new ApplicationScope());
scopes.put("desktop", new DesktopScope());
scopes.put("page", new PageScope());
scopes.put("idspace", new IdSpaceScope());
scopes.put("execution", new ExecutionScope());
builder.addPropertyValue("scopes", scopes);
reg.registerBeanDefinition(ZkBeanIds.ZK_SCOPE_CONFIG, builder.getBeanDefinition());