anchor.diff:      return -1;
     }
   
  -  public static java.util.Map<String, Object> readBean( final byte[] input, final int metadataMask )
  +  public static java.util.Map<String, Object> readBean( final byte[] input, final boolean includeToDate )
       throws java.io.IOException, ClassNotFoundException
     {
  -    return readBean( new java.io.ObjectInputStream( new java.io.ByteArrayInputStream( input ) ), metadataMask );
  -  }
  -
  -  private static java.util.Map<String, Object> readBean( final java.io.ObjectInput input, final int metadataMask )
  +    return readBean( new java.io.ObjectInputStream( new java.io.ByteArrayInputStream( input ) ), includeToDate );
  +  }
  +
  +  private static java.util.Map<String, Object> readBean( final java.io.ObjectInput input, final boolean includeToDate )
        throws java.io.IOException, ClassNotFoundException
     {
         final java.util.Map<String, Object> data = new java.util.HashMap<String, Object>();
  
positive.code:       }
  <% end %>
     }
  <% end %>
  }
negative.code:       data.put( iris.persist.DatabasePeer.ID, primaryKey );
  
        final int attributesMask;
        if ( includeToDate )
        {
           attributesMask = SERVER_TO_SERVER_ATTR_MASK_FOR_TYPE_CODE[typeCode];
        }
        else
        {
           attributesMask = input.readInt();
        }
        if ( includeToDate )
        {
           final long to = input.readLong();
           if ( 0 != to )
  