// add jcr-specific resource properties
properties.add(new DefaultDavProperty(JCR_TYPE, PropertyType.nameFromValue(type)));
if (isMultiple()) {
properties.add(new ValuesProperty(prop.getValues()));
properties.add(new LengthsProperty(prop.getLengths()));
} else {
properties.add(new ValuesProperty(prop.getValue()));
long length = prop.getLength();
properties.add(new DefaultDavProperty(JCR_LENGTH, String.valueOf(length), true));
if (prop.getLength() > IOUtil.UNDEFINED_LENGTH) {