Java program that changes instance states to closed for removal using Oracle's Purge Scripts