private void disconnectDServer(){
  if (ld != null) {
    ld.close();
    ld=null;
    dsConfigInstance=null;
  }
}

private void disconnectDServer ( ) { if ( ld != null ) { ld . close ( ) ; ld = null ; dsConfigInstance = null ; } }
helper method to disconnect from directory server .
