public String fullLocation(String location){
  StringBuilder buf=new StringBuilder();
  if (!envName.isEmpty()) {
    String propValue=System.getProperty(envName);
    if (propValue == null) {
      String errMsg="The Java environment (-Dxxx=yyy) variable with name " + envName + " is not set, cannot load resource.";
      Debug.logError(errMsg,module);
      throw new IllegalArgumentException(errMsg);
    }
    buf.append(propValue);
  }
  buf.append(prefix);
  buf.append(location);
  return buf.toString();
}

public String fullLocation ( String location ) { StringBuilder buf = new StringBuilder ( ) ; if ( ! envName . isEmpty ( ) ) { String propValue = System . getProperty ( envName ) ; if ( propValue == null ) { String errMsg = "The Java environment (-Dxxx=yyy) variable with name " + envName + " is not set, cannot load resource." ; Debug . logError ( errMsg , module ) ; throw new IllegalArgumentException ( errMsg ) ; } buf . append ( propValue ) ; } buf . append ( prefix ) ; buf . append ( location ) ; return buf . toString ( ) ; }
just a utility method to be used in loadresource by the implementing class .
