// controls
List<Control> controlList = new ArrayList<Control>();
if ( browserConnection.getRootDSE().isControlSupported(
org.apache.directory.studio.ldapbrowser.core.model.Control.TREEDELETE_CONTROL.getOid() ) )
{
Control treeDeleteControl = new BasicControl(
org.apache.directory.studio.ldapbrowser.core.model.Control.TREEDELETE_CONTROL.getOid(),
org.apache.directory.studio.ldapbrowser.core.model.Control.TREEDELETE_CONTROL.isCritical(),
org.apache.directory.studio.ldapbrowser.core.model.Control.TREEDELETE_CONTROL.getControlValue() );
controlList.add( treeDeleteControl );
}