*/
public class GetCurrentNetwork {
public static void runExample(DfpServices dfpServices, DfpSession session) throws Exception {
// Get the NetworkService.
NetworkServiceInterface networkService =
dfpServices.get(session, NetworkServiceInterface.class);
// Get the current network.
Network network = networkService.getCurrentNetwork();
System.out.printf("Current network has network code \"%s\" and display name \"%s\".\n",
network.getNetworkCode(), network.getDisplayName());
}