.addListener(verificationHandler)
.install());
NamespaceContextSelector.setDefault(new NamespaceContextSelector() {
public Context getContext(String identifier) {
final NamingStore namingStore;
if(identifier.equals("global")){
namingStore = globalNamingStore;
} else if(identifier.equals("jboss")) {
namingStore = jbossNamingStore;
} else {
namingStore = null;
}
if (namingStore != null) {
try {
return (Context) namingStore.lookup(EMPTY_NAME);
} catch (NamingException e) {
throw new IllegalStateException(e);
}
} else {
return null;