For any class which inherits from UserContext simply use the getContext() method, cf src/lib/cc/user_context.h Regards Francis Dupont <fdupont at isc.org>