}
public void removePolicyTask(String name) {
if (name != null && policyTaskTable.containsKey(name)) {
for (int i = 0; i < timer.size(); i++) {
TimerTask timerTask = timer.getTimerTask(i);
if (timerTask != null && timerTask.getName().equalsIgnoreCase(name)) {
timerTask.cancel();
}
}
timer.purge();
PolicyTask task = policyTaskTable.remove(name);