/** * Releases resources immediately instead of waiting for the garbage collector. This method do * <strong>not</strong> dispose the resources of wrapped factories (e.g. {@link #crsFactory * crsFactory}), because they may still in use by other classes. */ public synchronized void dispose() throws FactoryException { pool.clear(); super.dispose(); } }