private void purge(Map<? extends ProcessIdentity, ? extends Purgable> purgableMap) {

		final Set<ProcessIdentity> zombies = new HashSet<>();

		for (Entry<? extends ProcessIdentity, ? extends Purgable> entry : purgableMap.entrySet()) {
			if (entry.getValue().shouldPurge()) {
				zombies.add(entry.getKey());
			}
		}

		if (zombies.size() > 0) {
			for (ProcessIdentity processIdentity: zombies) {
				purgableMap.remove(processIdentity);
			}
			m_newData = true;
		}
	}
Callers are for synchronization.

@param purgableMap map for {@link ProcessIdentity}
ngrinder-core/src/main/java/net/grinder/console/communication/AgentProcessControlImplementation.java