public Status newStatus(final QName codeValue, final String statusMessage) {
        val status = SamlUtils.newSamlObject(Status.class);
        val code = SamlUtils.newSamlObject(StatusCode.class);
        code.setValue(codeValue);
        status.setStatusCode(code);
        if (StringUtils.isNotBlank(statusMessage)) {
            val message = SamlUtils.newSamlObject(StatusMessage.class);
            message.setValue(statusMessage);
            status.setStatusMessage(message);
        }
        return status;
    }
Create a new SAML status object.

@param codeValue     the code value
@param statusMessage the status message
@return the status
support/cas-server-support-saml-core-api/src/main/java/org/apereo/cas/support/saml/util/Saml10ObjectBuilder.java