{
org.apache.directory.studio.ldapbrowser.core.model.Control[] ctls = parameter.getControls();
ldapControls = new Control[ctls.length];
for ( int i = 0; i < ctls.length; i++ )
{
ldapControls[i] = new BasicControl( ctls[i].getOid(), ctls[i].isCritical(), ctls[i].getControlValue() );
}
}
NamingEnumeration<SearchResult> result = browserConnection.getConnection().getJNDIConnectionWrapper().search(
searchBase, filter, controls, aliasesDereferencingMethod, referralsHandlingMethod, ldapControls, monitor,