GEOT-4497, remove use of proprietary com.sun package classes
Merge pull request #230 from geosolutions-it/fix-jdk7

GEOT-4497, remove use of proprietary com.sun package classes