result = ManagementSupport.createComponentWarning(
result = ManagementSupport.createComponentFailure(
    protected boolean getComponentTaskResult(String resultMsg, String component, List results, boolean success) {        Element result = null;        try {            Document doc = parse(resultMsg);            result = getElement(doc, "component-task-result");            Element e = getChildElement(result, "component-task-result-details");            e = getChildElement(e, "task-result-details");            e = getChildElement(e, "task-result");            String r = DOMUtil.getElementText(e);            if (!"SUCCESS".equals(r)) {                success = false;            }        } catch (Exception e) {            // The component did not throw an exception upon deployment,            // but the result string is not compliant, so issue a warning            // and consider this is a successfull deployment            try {                if (success) {                    result = ManagementSupport.createComponentFailure(                            "deploy", component,                            "Unable to parse result string", e);                } else {                    result = ManagementSupport.createComponentWarning(                            "deploy", component,                            "Unable to parse result string", e);                }            } catch (Exception e2) {                log.error(e2);                result = null;            }        }        if (result != null) {            results.add(result);        }        return success;    }