get environment from ServerInstanceContext if environment is not given on command line