*/
@SuppressWarnings({"unchecked"})
protected XReference.Holder createStoredHolder(final XReference ref, final Object target) {
switch (holderType) {
case HARD:
return new InstanceHolder(target);
case SOFT:
return new SoftUnmarshalHolder(ref, target);
default:
throw new Error();
}