* @return Deployment status.
*/
public DeploymentStatus getDeploymentStatus() {
StringBuffer message = new StringBuffer();
CommandType commandType = null;
ActionType actionType = null;
boolean completed = true;
boolean failed = false;
for (Iterator iter = progressObjects.iterator(); iter.hasNext();) {
ProgressObject progress = (ProgressObject) iter.next();
DeploymentStatus status = progress.getDeploymentStatus();
CommandType curCommandType = status.getCommand();
ActionType curActionType = status.getAction();
if ( null == commandType ) {
commandType = curCommandType;
actionType = curActionType;
} else if ( commandType != curCommandType ) {
throw new AssertionError("Heterogeneous CommandType");