K[] newKey = ErasureUtils.<K>mkTArray(Object.class,key.length + 1);
if (key.length > 0) {
System.arraycopy(key, 0, newKey, 0, key.length);
}
newKey[key.length] = finalKey;
MutableDouble value = (MutableDouble) map.get(finalKey);
Double value1 = new Double(value.doubleValue());
if (useLists) {
s.add(new Entry<Object,Double>(Arrays.asList(newKey), value1));
} else {
s.add(new Entry<Object,Double>(newKey[0], value1));
}