code: private void buildStructure() throws DevFailed {
          DbServer    server;
          if (tgHost ==null || tgPort ==null)
              server = new DbServer(serverName);
          else {
              server = new DbServer(serverName, tgHost, tgPort);
          }
  
          //  Check if server defined in database.
          String  adminName = (tgHost ==null)? "" : "tango://"+ tgHost +":"+ tgPort +"/";
          adminName += "dserver/"+serverName.toLowerCase();
          new DeviceProxy(adminName);
  
          //  Build Server classes
          String[]    classNames = server.get_class_list();
          classes.add(new TangoClass("DServer"));
          for (String className : classNames) {
               classes.add(new TangoClass(className));
          }
  	}
docs: ===============================================================