resolved NPE resulting from null ContextSelector happening because ContextSelectorBinder was not initialized. also made it possible to configure using either groovy or xml. previous implementation only worked with xml config.