private static boolean isHostedInCloud(@NotNull JsonObject serverInfo) {
    final JsonElement deploymentType = serverInfo.get("deploymentType");
    if (deploymentType != null) {
      return deploymentType.getAsString().equals("Cloud");
    }
    // Legacy heuristics
    final boolean atlassianSubDomain = isAtlassianNetSubDomain(serverInfo.get("baseUrl").getAsString());
    if (atlassianSubDomain) {
      return true;
    }
    // JIRA OnDemand versions contained "OD" abbreviation
    return serverInfo.get("version").getAsString().contains("OD") ;
  }
private static boolean isHostedInCloud(@NotNull JsonObject serverInfo)