Combined Resource and Context Model for QoS-Aware Mobile Middleware