code: public static boolean propertiesEqual(Dictionary<String, String> properties, Dictionary<String, String> dictionary)
      {
          Enumeration<String> props = properties.keys();
          while (props.hasMoreElements())
          {
              String key = props.nextElement();
              if (!properties.get(key).equals(dictionary.get(key)))
                  return false;
          }
          props = dictionary.keys();
          while (props.hasMoreElements())
          {
              String key = props.nextElement();
              if (!dictionary.get(key).equals(properties.get(key)))
                  return false;
          }
          return true;
      }
docs: Are these properties equal.
  @param properties
  @param dictionary
  @return