Costa Rican diplomat Edgar Ugalde told the court the action is threatening peace in the region .