public int check(Ui ui) { ui.checking(this); LdapObject entry = findEntry(); if (parent.contains(entry)) { ui.info(this, "target " + parent + " has entry " + this); message = null; status = OK; } else { message = "target " + parent + " should have entry " + this; ui.error(this, message); status = ERROR; } ui.readyWith(this); return status; }