Adaptive Semantic Middleware for Mobile Environments