code: def find_environment(env_id=None, env_name=None):
          
          LOGGER.debug("EnvironmentService.find_environment")
          if (env_id is None or not env_id) and (env_name is None or not env_name):
              raise exceptions.ArianeCallParametersError('id and name')
  
          if (env_id is not None and env_id) and (env_name is not None and env_name):
              LOGGER.warn('Both id and name are defined. Will give you search on id.')
              env_name = None
  
          params = None
          if env_id is not None and env_id:
              params = {'id': env_id}
          elif env_name is not None and env_name:
              params = {'name': env_name}
  
          ret = None
          if params is not None:
              args = {'http_operation': 'GET', 'operation_path': 'get', 'parameters': params}
              response = EnvironmentService.requester.call(args)
              if response.rc == 0:
                  ret = Environment.json_2_environment(response.response_content)
              elif response.rc != 404:
                  err_msg = 'EnvironmentService.find_environment - Problem while finding environment (id:' + \
                            str(env_id) + ', name:' + str(env_name) + '). ' + \
                            'Reason: ' + str(response.response_content) + '-' + str(response.error_message) + \
                            " (" + str(response.rc) + ")"
                  LOGGER.warning(
                      err_msg
                  )
  
          return ret
docs: find the environment according environment id (prioritary) or environment name
          :param env_id: the environment id
          :param env_name: the environment name
          :return: found environment or None if not found