// supply a recursion control such as Oracle's CONNECT_BY (2.16.840.1.113894.1.8.3)
if (!sUserDN.equals("*") && (recursiveControlId.length() > 0)) {
if (dirContext instanceof LdapContext) {
LdapContext ldapContext = (LdapContext)dirContext;
Control[] aControls = ldapContext.getRequestControls();
Control recursiveControl = new BasicControl(recursiveControlId);
List<Control> lControls = new ArrayList<Control>();
if (aControls != null) {
for (Control ctl: aControls) {
lControls.add(ctl);
}