Dynamically get the NetworkManager class

Thanks