code: public void setOutputProperties(Properties outputProperties) {
          for (Enumeration e = outputProperties.propertyNames();
               e.hasMoreElements(); ) {
              Object key = e.nextElement();
              if (key != null) {
                  String name = key.toString();
                  String value = outputProperties.getProperty(name);
                  if (value != null) {
                      setOutputProperty(name, value);
                  }
              }
          }
      }
docs: Override output properties specified in the transformation stylesheet
  @param outputProperties
  @see Transformer#setOutputProperties(java.util.Properties)