@SuppressWarnings("unchecked")
@Override
public <T> Object execute(T... args) {
Map<Object, Pair<Long, Long>> curr = null;
if (args != null && args.length > 0) {
UpdateParams p = (UpdateParams) args[0];
if (p.getCurr() != null) {
curr = (Map<Object, Pair<Long, Long>>) p.getCurr();
} else {
curr = new HashMap<Object, Pair<Long, Long>>();
}
Object[] keyAvgArgs = p.getArgs();
Long amt = 1l;
if (keyAvgArgs.length > 1) {
amt = Long.parseLong(String.valueOf(keyAvgArgs[1]));
}