.addContextProperty(CloudifyConstants.CONTEXT_PROPERTY_APPLICATION_NAME, applicationName)
.highlyAvailable(dataGridConfig.getSla().getHighlyAvailable())
.singleMachineDeployment();
setContextProperties(deployment, contextProperties);
if (cloud == null) {
<BUG>setSharedMachineProvisioning(deployment, agentZones, reservedMemoryCapacityPerMachineInMB);
if (isLocalCloud()) {
deployment.scale(new ManualCapacityScaleConfigurer().memoryCapacity(</BUG>
dataGridConfig.getSla().getMemoryCapacity(), MemoryUnit.MEGABYTES).create());
<BUG>} else {
deployment.scale(ElasticScaleConfigFactory.createEagerScaleConfig());</BUG>
}

.addContextProperty(CloudifyConstants.CONTEXT_PROPERTY_APPLICATION_NAME, applicationName)
.name(serviceName);
if (isLocalCloud()) {
setPublicMachineProvisioning(deployment, agentZones, reservedMemoryCapacityPerMachineInMB);
