Create Router/RouterConfig from HOCON Config

We can configure routing using the path of application.conf. How are these configurations used to programmatically create a Router and/or RouterConfig? Example code or a reference to where it is done in the source would be greatly appreciated!

This is one sample in the docs: