code: private void writeObject(final java.io.ObjectOutputStream out)
       throws IOException {
       out.writeObject(field);
       out.writeObject(pattern.pattern());
     }
docs: Serialize the state of the object.
  
  @param out object output stream
  
  @throws IOException if IOException during serialization