XPreparedStatementCache stmtCache = (XPreparedStatementCache)statements.get(statement);  stmtCache.dereference(proxy);
synchronized(statements) { XPreparedStatementCache stmtCache = (XPreparedStatementCache)statements.get(statement);  if (stmtCache == null) { if (getLogChannel() != null) getLogChannel().error( "Cannot find statement cache for SQL \"" + statement + "\". Trying to close statement to release resources." );  if (proxy instanceof XCachablePreparedStatement) ((XCachablePreparedStatement)proxy).forceClose(); } else stmtCache.dereference(proxy); }
        public void statementClosed(String statement, Object proxy) throws SQLException {            XPreparedStatementCache stmtCache =                 (XPreparedStatementCache)statements.get(statement);                        stmtCache.dereference(proxy);        }