/** * Creates a suffix instance using the specified parameters. * * @param entryContainer The entry container pertaining to the suffix. * @param srcEntryContainer The original entry container. * @param includeBranches The include branches. * @param excludeBranches The exclude branches. */ Suffix( EntryContainer entryContainer, EntryContainer srcEntryContainer, List<DN> includeBranches, List<DN> excludeBranches) { this.entryContainer = entryContainer; this.srcEntryContainer = srcEntryContainer; this.baseDN = entryContainer.getBaseDN(); if (includeBranches != null) { this.includeBranches = includeBranches; } else { this.includeBranches = new ArrayList<>(0); } if (excludeBranches != null) { this.excludeBranches = excludeBranches; } else { this.excludeBranches = new ArrayList<>(0); } }