Updated WrappedConnection to support JDK 7