Implemented getting asset manager from context.