Create Router/RouterConfig from HOCON Config

We can configure routing using the akka.actor.deployment 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: https://doc.akka.io/docs/akka/current/routing.html#pool