DeploymentManager deploymentManager = connection.getDeploymentManager();
DeploymentProgress progress;
if (name.equals("start")) {
//FIXME: This is a workaround until JOPR-309 will be fixed.
if (getAvailability() != AvailabilityType.UP) {
progress = deploymentManager.start(deploymentName);
} else {
LOG.warn("Operation '" + name + "' on " + getResourceDescription()
+ " failed because the Resource is already started.");
OperationResult result = new OperationResult();
result.setErrorMessage(deploymentFile.getName() + " is already started.");