code: private static Long getNodePropertySize(final Node node)
          throws RepositoryException {
          Long size = 0L;
          for (final PropertyIterator i = node.getProperties(); i.hasNext();) {
              final Property p = i.nextProperty();
              if (p.isMultiple()) {
                  for (final Value v : p.getValues()) {
                      size += v.getBinary().getSize();
                  }
              } else {
                  size += p.getBinary().getSize();
              }
          }
          return size;
      }
docs: Get the total size of a Node's properties
  
  @param node the node
  @return size in bytes
  @throws RepositoryException if repository exception occurred