@Override public String getMessage() { StringBuilder buffer = new StringBuilder(); buffer.append("Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):\n"); // Display all the missing deployers buffer.append(incompleteDeployments.getDeploymentsMissingDeployerInfo()); // Display all the incomplete deployments buffer.append(incompleteDeployments.getDeploymentsInErrorInfo()); // Display all the missing dependencies buffer.append(incompleteDeployments.getContextsMissingDependenciesInfo()); // Display all contexts in error buffer.append(incompleteDeployments.getContextsInErrorInfo()); // buffer to string return buffer.toString(); } }