}
public boolean apply(Diagnostic d) {
if(msg != null && d.getMessage() != null && !d.getMessage().contains(msg))
return false;
AbstractValidationDiagnostic issue = null;
if(d instanceof AbstractValidationDiagnostic)
issue = (AbstractValidationDiagnostic) d;
if(issueCode != null && (issue == null || !issue.getIssueCode().equals(issueCode)))
return false;
return true;
}