Make relavent changes for refactoring of NioSessionProcessor.