// deploy LB service cluster
deployLBCluster(type, lbDataCtxt, tenantRange);
}
Service service = new MultiTenantService(type, autoscalingPolicyName, deploymentPolicyName, tenantId, cartridgeInfo, tenantRange);
Properties serviceClusterProperties = null;
if (lbDataCtxt.getLoadBalancedServiceProperties() != null && !lbDataCtxt.getLoadBalancedServiceProperties().isEmpty()) {
serviceClusterProperties = new Properties();
serviceClusterProperties.setProperties(lbDataCtxt.getLoadBalancedServiceProperties().toArray(new Property[0]));
}
// create
service.create();
//deploy the service
service.deploy(serviceClusterProperties);
// persist
persist(service);
return service;