case PropertyType.REFERENCE:
return vf.createValue(val.toString(), PropertyType.REFERENCE);
case PropertyType.WEAKREFERENCE:
return vf.createValue(val.toString(), PropertyType.WEAKREFERENCE);
case PropertyType.URI:
return new URIValue((URI) val);
case PropertyType.PATH:
return vf.createValue(resolver.getJCRPath((Path) val), PropertyType.PATH);
case PropertyType.NAME:
return vf.createValue(resolver.getJCRName((Name) val), PropertyType.NAME);
case PropertyType.STRING: