@Nullable
  private static Number getNumber(Map<String, ?> map, String key) {
    Object o = map.get(key);
    return o instanceof Number ? (Number)o : null;
  }
@Nullable
  private static Number getNumber(Map<String, ?> map, String key)