CAINT-1347 Removed unused imports and adjusted .checkstyle check
patterns.
CAINT-1347 Revised @SuppressWarnings and checkstyle path.
CAINT-1347 Handled unclosed resources and unused local variables