o Encaspulated the call to selector.wakeup() in the wakeup() method
o Call wakeup() in the modifyRegistration() method only when it's necessary (ie, only when the register method is not called in the select loop). This spare a spurious wakeup.
o Called the SelectedKey.readyOps() only once.

git-svn-id: https://svn.apache.org/repos/asf/mina/mina/trunk@1428982 13f79535-47bb-0310-9956-ffa450edef68