code: public static Properties createProperties(String... _keysAndVals) {
         if (_keysAndVals != null && _keysAndVals.length % 2 != 0) {
             throw new IllegalArgumentException("Even number of String parameters required.");
         }
         Properties props = new Properties();
         if (_keysAndVals != null) {
             for (int i = 0; i < _keysAndVals.length; i+=2) {
                 props.setProperty(_keysAndVals[i], _keysAndVals[i + 1]);
             }
         }
         return props;
     }
docs: Factory method for {@link Properties} from an even-sized String array.
  @param _keysAndVals String array of keys and values, may be null or even-numbered String array
  @return new Properties object