Bug fix

Fixed Byte[] to byte[] cast bug.
Code fix

Removed dead code.
Code fix

Replaced default toString for Arrays with more human readable Arrays.toString method.
Code fix

Changed default ResultMessage's to be final.
Bug fix

Boolean methods should not return null, since Boolean is not a tri-value type.
Bug fix

We referenced a known null variable while generating an exception.
Bug fix

Added try/finally logic to always release opened streams.
Bug fix

Removed potential null dereference.
Performance fix

Changed uses of a key set to uses of an entry set for performance reasons, since calling get(key) is extremely costly.