class Message implements Serializable {

    public boolean isMandatoryFieldMessage() {
        return getMarkers()
                .stream()
                .anyMatch(ValidationMarker::isRequiredInformationMissing);
    }

    public  Message(@CheckForNull String code, String text, Severity severity);
      Message(@CheckForNull String code, String text, Severity severity,
            @CheckForNull List<ObjectProperty> invalidObjectProperties, @CheckForNull Set<ValidationMarker> markers);

}