From managing community expectations to negotiating a memorandum of understanding, companies tend to get locked in unwanted conflicts with communities.