class FromSystemProperties extends ResolverImp {

  @Override
  public String resolve(String s) {
    if (s == null) {
      return null;
    }
    String result = s;
    log.trace("Resolving {} from system properties", s);
    Matcher m = resolverPattern.matcher(s);
    Map<String, String> properties = asMap(System.getProperties());
    while (m.matches()) {
      String key = m.group(1);
      log.trace("Resolve on {} ", key);
      String syspropValue = resolve(key, properties);
      String toReplace = "%sysprop{" + key + "}";
      result = result.replace(toReplace, syspropValue);
      m = resolverPattern.matcher(result);
    }
    return result;
  }

  public  FromSystemProperties();

}