// This method helps to create the new tenant
public void addTenant(String admin, String firstName, String lastaName, String password, String domain, String email)
throws CommandException{
DefaultHttpClient httpClient = new DefaultHttpClient();
try {
TenantInfoBean tenantInfo = new TenantInfoBean();
tenantInfo.setAdmin(admin);
tenantInfo.setFirstname(firstName);
tenantInfo.setLastname(lastaName);
tenantInfo.setAdminPassword(password);
tenantInfo.setTenantDomain(domain);
tenantInfo.setEmail(email);
GsonBuilder gsonBuilder = new GsonBuilder();
Gson gson = gsonBuilder.create();
String jsonString = gson.toJson(tenantInfo, TenantInfoBean.class);