updated implementation of SandboxConnection to be compliant with java 6 ...

...and 7

I saw the discussion for https://github.com/BroadleafCommerce/BroadleafCommerce/pull/40 and decided to make a pull request for this change