private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException {
  initFactory();
  in.defaultReadObject();
}

private void readObject ( ObjectInputStream in ) throws IOException , ClassNotFoundException { initFactory ( ) ; in . defaultReadObject ( ) ; }
called when de - serializing the object .
