private void writeObject(java.io.ObjectOutputStream s) throws IOException {
  if (actions == null)   getActions();
  s.defaultWriteObject();
}

private void writeObject ( java . io . ObjectOutputStream s ) throws IOException { if ( actions == null ) getActions ( ) ; s . defaultWriteObject ( ) ; }
writeobject is called to save the state of the servicepermission to a stream . the actions are serialized , and the superclass takes care of the name .
