Exception exception = null;  if( isClosed ) return; isClosed = true;  if( !hitEndOfData ) { try { tds.goToNextResult(warningChain, stmt); hitEndOfData = true; if( allowTdsRelease ) stmt.releaseTds(); } catch( TdsException e ) { exception = e; } catch( java.io.IOException e ) { exception = e; } }  rowCache = null; metaData = null; context = null; stmt = null; tds = null;  if( exception != null ) throw new SQLException(exception.toString());
close(true);
    synchronized void close(boolean allowTdsRelease) throws SQLException    {        Exception exception = null;        if( isClosed )            return;        isClosed = true;        if( !hitEndOfData )        {            try            {                tds.goToNextResult(warningChain, stmt);                hitEndOfData = true;                if( allowTdsRelease )                    stmt.releaseTds();            }            catch( TdsException e )            {                exception = e;            }            catch( java.io.IOException e )            {                exception = e;            }        }        rowCache = null;        metaData = null;        context = null;        stmt = null;        tds = null;        if( exception != null )            throw new SQLException(exception.toString());    }