Use ExecutionEnvironment.canUseDOM