readResolve() implementation