code: public static Properties getProps(Properties props, String name, Properties defaultProperties) {
          final String propString = props.getProperty(name);
          if (propString == null) return defaultProperties;
          String[] propValues = propString.split(",");
          if (propValues.length < 1) {
              throw new IllegalArgumentException("Illegal format of specifying properties '" + propString + "'");
          }
          Properties properties = new Properties();
          for (int i = 0; i < propValues.length; i++) {
              String[] prop = propValues[i].split("=");
              if (prop.length != 2) throw new IllegalArgumentException("Illegal format of specifying properties '" + propValues[i] + "'");
              properties.put(prop[0], prop[1]);
          }
          return properties;
      }
docs: Get a property of type java.util.Properties or return the default if
  no such property is defined
  @param props properties
  @param name the key
  @param defaultProperties default property if empty
  @return value from the property