Automatic Service Categorization through Machine Learning in Emergent Middleware