public void read(JMEImporter e) throws IOException {
   super.read(e);
   float[] vals = e.getCapsule(this).readFloatArray("vals", null);
   if (unsavedKeys == null) throw new IOException("Keys not stored");
   if (vals == null) throw new IOException("Vals not stored");
   if (unsavedKeys.length != vals.length)
     throw new IOException("Key/Val size mismatch: " + unsavedKeys.length + " vs. " + vals.length);
   for (int i = 0; i < unsavedKeys.length; i++) put(unsavedKeys[i], vals[i]);
 }