/** Close the PropertyOutputStream, storing the property. */
 public void close() {
   if (project != null && property != null) {
     String s = new String(toByteArray());
     project.setNewProperty(property, trim ? s.trim() : s);
   }
 }