File localFile = new File(path);
char[] password = null;
if (ClientFactory.isEncrypted(localFile))
{
PasswordDialog pwdDialog = new PasswordDialog(shell);
if (pwdDialog.open() != PasswordDialog.OK)
return;
password = pwdDialog.getPassword().toCharArray();
}
try
{
clientFile = localFile;