The old line uses org.apache.tomcat.jdbc.pool.interceptor.StatementDecoratorInterceptor which protects against someone bypassing the connection pool and closing a connection directly. https://tomcat.apache.org/tomcat-7.0-doc/jdbc-pool.html#org.apache.tomcat.jdbc.pool.interceptor.StatementDecoratorInterceptor 

Might be a good guard to have in the commons pool as well, if it has an equivalent.