allow getServerEnvironment to throw exception