public VariableConfigResource(String configuration,TextResource baseResource){
  this(baseResource);
  for (  String configurationLine : configuration.split("\n|\r\n")) {
    String[] configSplit=configurationLine.split("=");
    addConfig(configSplit[0],configSplit[1]);
  }
}

public VariableConfigResource ( String configuration , TextResource baseResource ) { this ( baseResource ) ; for ( String configurationLine : configuration . split ( "\n|\r\n" ) ) { String [ ] configSplit = configurationLine . split ( "=" ) ; addConfig ( configSplit [ 0 ] , configSplit [ 1 ] ) ; } }
constructs a textresource that substitutes variables with values in a wrapped textresource . configures using a configuration file , with lines of variablename = value .
