124125126127128129130131132133134135136
for( Object o : getOpenObjects().toArray() ) { if( o==null )continue; if( o instanceof Closeable ) { Closeable co = (Closeable)o; if( co.isClosed() )continue; co.close(); } if( o instanceof Wrapper ){ ((Wrapper)o).release(); } }