Classes from "com.sun.*" and "sun.*" packages should not be used

Classes from "com.sun.*" and "sun.*" packages should not be used
https://issues.openmrs.org/browse/GCI-9