Theory and practice of environmental mediation