Consider replacing Vector usages with the newer java.util.ArrayList if expensive threadsafe operation is not required.