code: public static String[] propertiesToArgs(Map<String,Object> properties)
      {
          if (properties == null)
              return null;
          String[] rgArgs = new String[properties.size()];
          int i = 0;
          for (String strKey : properties.keySet())
          {
              Object strValue = properties.get(strKey);
              rgArgs[i++] = strKey.toString() + '=' + strValue.toString();
          }
          return rgArgs;
      }
docs: Create an argument list using all the properties in this property list.
  @param properties The properties to convert.
  @return A string array with entries of key=value.