Creating a reusable Restconf client