System.out.println("Error in response");
return;
}
String subscriptionOutputJSON= subscriptionOutput.substring(20, subscriptionOutput.length() -1);
SubscriptionInfo subcriptionInfo = gson.fromJson(subscriptionOutputJSON, SubscriptionInfo.class);
System.out.format("You have successfully subscribed to %s cartridge with alias %s.%n", cartridgeType, alias);
String repoURL = null;
String hostnames = null;
String hostnamesLabel = null;
if (subcriptionInfo != null) {
repoURL = subcriptionInfo.getRepositoryURL();
hostnames = subcriptionInfo.getHostname();
hostnamesLabel = "host name";
if (repoURL != null) {
System.out.println("GIT Repository URL: " + repoURL);
}