public GatewayEnvironment(){
  String base=System.getProperty(BASE_SYSTEM_PROPERTY);
  if (base != null) {
    delegate=new DefaultEnvironment(new File(base));
    return;
  }
  base=System.getenv(BASE_ENV_VARIABLE);
  if (base != null) {
    delegate=new DefaultEnvironment(new File(base));
    return;
  }
  delegate=new PlatformEnvironment();
}

public GatewayEnvironment ( ) { String base = System . getProperty ( BASE_SYSTEM_PROPERTY ) ; if ( base != null ) { delegate = new DefaultEnvironment ( new File ( base ) ) ; return ; } base = System . getenv ( BASE_ENV_VARIABLE ) ; if ( base != null ) { delegate = new DefaultEnvironment ( new File ( base ) ) ; return ; } delegate = new PlatformEnvironment ( ) ; }
builds a new web environment .
