code: private void createTheServer(Database database) throws DevFailed {
          ArrayList<DbDevInfo>    deviceInfoList =new ArrayList<DbDevInfo>();
          for (TangoClass clazz : classes) {
              for (TangoDevice device : clazz) {
                  deviceInfoList.add(new DbDevInfo(device.name, clazz.name, serverName));
              }
          }
          DbDevInfo[] deviceInfoArray = new DbDevInfo[deviceInfoList.size()];
          for (int i=0 ; i<deviceInfoList.size() ; i++) {
              deviceInfoArray[i] = deviceInfoList.get(i);
          }
          database.add_server(serverName, deviceInfoArray);
      }
docs: ===============================================================