Self-organization in service discovery in presence of noncooperative agents