encapsulate getContext proxy in other factory bean