private void writeObject(ObjectOutputStream out) throws IOException {
  out.defaultWriteObject();
  serviceID.writeBytes(out);
}

private void writeObject ( ObjectOutputStream out ) throws IOException { out . defaultWriteObject ( ) ; serviceID . writeBytes ( out ) ; }
writes the service id , encoded as specified by the serviceid . writebytes method .
