+ implemented java code to use SelectionManager