A new agent based service discovery mechanism