public void removed(java.awt.Container cont){
  if (killCache) {
    rpfLogger.fine("emptying cache!");
    clearCache();
  }
  setProjection((Projection)null);
}

public void removed ( java . awt . Container cont ) { if ( killCache ) { rpfLogger . fine ( "emptying cache!" ) ; clearCache ( ) ; } setProjection ( ( Projection ) null ) ; }
called when the layer is no longer part of the map . in this case , we should disconnect from the server if we have a link .
