/** * Indicates whether to include the entry with the specified DN in the import. * * @param dn The DN of the entry for which to make the determination. * @return <CODE>true</CODE> if the entry with the specified DN should be included in the import, * or <CODE>false</CODE> if not. */ public boolean includeEntry(DN dn) { if (!excludeBranches.isEmpty()) { for (DN excludeBranch : excludeBranches) { if (excludeBranch.isAncestorOf(dn)) { return false; } } } if (!includeBranches.isEmpty()) { for (DN includeBranch : includeBranches) { if (includeBranch.isAncestorOf(dn)) { return true; } } return false; } return true; }