@Override
 public void invalidate() {
   Energy.instance.unregister(this);
   super.invalidate();
 }