code: private static void applyParameters(final Transformer transformer, final Map<String, String> parameters) {
          final Set<String> keys = parameters.keySet();
          for (Iterator<String> iterator = keys.iterator(); iterator.hasNext();) {
              final String key = iterator.next();
              transformer.setParameter(key, parameters.get(key));
          }
      }
docs: Applies all key/value pairs as defined by the given <code>Map</code> to the given <code>Transformer</code>
  instance.
  
  @param transformer
  @param parameters