// current namespace context of xml document
InternalValue ival =
InternalValue.create(serValue, targetType, nsContext);
// convert InternalValue to Value using this
// session's namespace mappings
va[i] = ival.toJCRValue(session.getNamespaceResolver());
} else if (targetType == PropertyType.BINARY) {
try {
if (tv.length() < 0x10000) {
// < 65kb: deserialize BINARY type using String
va[i] = ValueHelper.deserialize(tv.retrieve(), targetType, false);