PersistenceDelegate pd = out.getPersistenceDelegate( oldInstance.getClass().getSuperclass());
PersistenceDelegate pd = out.getPersistenceDelegate(type);
  protected void initialize(Class type, Object oldInstance, Object newInstance,                            Encoder out)  {    if (type != Object.class)      {        type = type.getSuperclass();        PersistenceDelegate pd = out.getPersistenceDelegate(          oldInstance.getClass().getSuperclass());        pd.initialize(type, oldInstance, newInstance, out);      }  }