Classes from com.sun.* and sun.* packages should not be used, Unused local variables should be removed, Correctness - Suspicious reference comparison of Boolean values

Fixed:
--Classes from com.sun.* and sun.* packages should not be used
--Unused local variables should be removed
--Correctness - Suspicious reference comparison of Boolean values

Ticket: https://issues.openmrs.org/browse/GCI-9