public void setProperties(SVNProperties properties) throws SVNException {
   if (properties != null) {
     for (Iterator names = properties.nameSet().iterator(); names.hasNext(); ) {
       String name = (String) names.next();
       SVNPropertyValue value = properties.getSVNPropertyValue(name);
       setPropertyValue(name, value);
     }
   }
 }
 public void setPropertyValue(String name, SVNPropertyValue value) throws SVNException {
   byte[] bytes = SVNPropertyValue.getPropertyAsBytes(value);
   int length = bytes != null && bytes.length >= 0 ? bytes.length : -1;
   setPropertyValue(name, bytes != null ? new ByteArrayInputStream(bytes) : null, length);
 }