}
Iterator<Property> props = session.getRootNode().getProperties();
while (props.hasNext())
{
PropertyImpl prop = (PropertyImpl)props.next();
if (!prop.isMultiValued())
{
Value value = prop.getValue();
nodesSize += ((ByteArrayInputStream)value.getStream()).available();
}
else
{
for (Value value : prop.getValues())
{
nodesSize += ((ByteArrayInputStream)value.getStream()).available();
}
}
}