protected final Object readResolve() throws InvalidObjectException {
final Class<?> type = getClass();
try {
return type.cast(type.getField(getName()).get(null));
} catch (Exception cause) {                                 // Many exceptions, including unchecked ones.
<BUG>InvalidObjectException e = new InvalidObjectException(cause.toString());

e.initCause(cause);
throw e;</BUG>
}

protected final Object readResolve() throws InvalidObjectException {
final Class<?> type = getClass();
try {
return type.cast(type.getField(getName()).get(null));
} catch (Exception cause) {                                 // Many exceptions, including unchecked ones.
throw (InvalidObjectException) new InvalidObjectException(cause.toString()).initCause(cause);
