else if(!folderURL.containsCredentials() &&
( (authenticationType==AuthenticationType.AUTHENTICATION_REQUIRED)
|| (authenticationType==AuthenticationType.AUTHENTICATION_OPTIONAL && CredentialsManager.getMatchingCredentials(folderURL).length>0))) {
AuthDialog authDialog = popAuthDialog(folderURL, false, null);
newCredentialsMapping = authDialog.getCredentialsMapping();
guestCredentialsSelected = authDialog.guestCredentialsSelected();
// User cancelled the authentication dialog, stop
if(newCredentialsMapping ==null)
userCancelled = true;
// Use the provided credentials and invalidate the folder AbstractFile instance (if any) so that