Topology topology = new Topology();
topology.setName( "test-cluster" );
Service service = new Service();
service.setRole( "WEBHDFS" );
service.setUrl( "http://localhost:50070/webhdfs" );
topology.addService( service );
Provider provider = new Provider();
provider.setRole( "authentication" );
provider.setEnabled( true );
ProviderParam param = new ProviderParam();
param.setName( "contextConfigLocation" );