The Middleware of Self-Adaptive System