final EObject causer = getCauser(diagnostic);
if (causer != null)
issue.setUriToProblem(EcoreUtil.getURI(causer));
final Integer code = diagnostic.getCode();
if (code != null)
<BUG>issue.setCode(code);
issue.setMessage(diagnostic.getMessage());</BUG>
acceptor.accept(issue);
}
protected EObject getCauser(org.eclipse.emf.common.util.Diagnostic diagnostic) {

final EObject causer = getCauser(diagnostic);
if (causer != null)
issue.setUriToProblem(EcoreUtil.getURI(causer));
final Integer code = diagnostic.getCode();
if (code != null)
issue.setCode(code);
if (diagnostic instanceof DiagnosticImpl)
issue.setType( ((DiagnosticImpl) diagnostic).getCheckType() );
issue.setMessage(diagnostic.getMessage());
acceptor.accept(issue);
}
protected EObject getCauser(org.eclipse.emf.common.util.Diagnostic diagnostic) {
