InternalValue ival =
InternalValue.create(ValueHelper.convert(
retrieve(), targetType, ValueFactoryImpl.getInstance()), nsContext);
// convert InternalValue to Value using this
// session's namespace mappings
return ival.toJCRValue(resolver);
} else if (targetType == PropertyType.BINARY) {
if (length() < 0x10000) {
// < 65kb: deserialize BINARY type using String
return ValueHelper.deserialize(retrieve(), targetType, false, ValueFactoryImpl.getInstance());
} else {