Removed uneeded imports
Organized Imports
Added @Override
Removed manual array copying
Added Specific Expection catching
Removed redundant casting
Revert "Removed redundant casting"

This reverts commit 0e0802197047dac8b7742ddfb7bc140eb50c9272.
Fixed String comparison
Organized Imports