int removed = 0;
try {
ArrayList<String> qList = getJdQueues();
Iterator<DuccId> iterator = workMap.getJobKeySet().iterator();
while( iterator.hasNext() ) {
DuccId jobId = iterator.next();
String jqKeep = jd_queue_prefix+jobId.getFriendly();
if(qList.remove(jqKeep)) {
logger.debug(location, duccId, "queue keep:"+jqKeep);
}
else {
logger.trace(location, duccId, "queue not found:"+jqKeep);