code: public static String expand(String keyString, Properties properties) {
          return PropertyUtil.expand(keyString, (Map) properties);
      }
docs: expand a keyString that may contain references to properties
  located in provided Properties object
  @return expanded
  @param keyString string
  @param properties properties