public boolean doesEntryExists(SSOToken token,String entryDN){
  try {
    PersistentObject po=UMSObject.getObject(internalToken,new Guid(entryDN));
  }
 catch (  UMSException ue) {
    if (entryDN.indexOf("agents") < 0) {
      if (debug.messageEnabled()) {
        debug.message("DirectoryServicesImpl.doesProfileExist(): + " + "Exception caught: ",ue);
      }
    }
    return false;
  }
  return true;
}

public boolean doesEntryExists ( SSOToken token , String entryDN ) { try { PersistentObject po = UMSObject . getObject ( internalToken , new Guid ( entryDN ) ) ; } catch ( UMSException ue ) { if ( entryDN . indexOf ( "agents" ) < 0 ) { if ( debug . messageEnabled ( ) ) { debug . message ( "DirectoryServicesImpl.doesProfileExist(): + " + "Exception caught: " , ue ) ; } } return false ; } return true ; }
checks if the entry exists in the directory .
