I'd be tempted to change casing while you're here  (to getHPCCEnvironment)