update to use non-deprecated call

This function returns boost::shared_ptr rather than the raw pointer returned by deprecated method.