code: private void readObject(final java.io.ObjectInputStream in)
       throws IOException, ClassNotFoundException {
           try {
             field = (String) in.readObject();
             String patternString = (String) in.readObject();
             pattern = Pattern.compile(patternString, Pattern.CASE_INSENSITIVE);
           } catch (PatternSyntaxException e) {
               throw new IOException("Invalid LIKE rule - " + e.getMessage());
           }
     }
docs: Deserialize the state of the object.
  
  @param in object input stream
  
  @throws IOException if IOException during deserialization
  @throws ClassNotFoundException if class not found.