public static void close(final PreparedStatement statement) {
        if (statement != null) {
            try {
                statement.close();
            } catch (SQLException e) {
                final String error = "Error closing JDBC prepared statement. This may indicate a resource leak.";
                LOG.warn(error, e);
            }
        }
    }
public static void close ( final PreparedStatement statement ) { if ( statement != null ) { try { statement . close ( ) ; } catch ( SQLException e ) { final String error = "Error closing JDBC prepared statement. This may indicate a resource leak." ; LOG . warn ( error , e ) ; } } }
Close a {@code PreparedStatement} and log any SQLExceptions that occur.

@param statement PreparedStatement to close (may be {@code null})