A two-level distributed architecture for the support of content adaptation and delivery services