code:     private ControllerInfo getControllerInfo(Annotations annotation, String s) {
          String[] data = s.split(":");
          if (data.length != 3) {
              print("Wrong format of the controller %s, should be in the format <protocol>:<ip>:<port>", s);
              return null;
          }
          String type = data[0];
          IpAddress ip = IpAddress.valueOf(data[1]);
          int port = Integer.parseInt(data[2]);
          if (annotation != null) {
              return new ControllerInfo(ip, port, type, annotation);
          }
          return new ControllerInfo(ip, port, type);
      }
  