not catching NPE, instead added a null check where it was legitimate
removing redundant try..catch (refer comments on commit#2e90722)
catching CancelledKeyException thrown by registerOp
removed unnecessary synchronization
fixed imports
fix handling of exceptions in SecureAgent's send
catch all exceptions that occur during receive and connection made in secureAgent as well
check for ssl session before trying to allocate the buffer. Refactor allocation of buffer methods into a single method
use UTF-8 for conversion from String to bytes in the Agent
Merge pull request #4 from kashifrazzaqui/cyclo_fix

Cyclo fix
Merge pull request #3 from kashifrazzaqui/unnecessaryNpeCatch

not catching NPE, instead added a null check where it was legitimate