// log failure; option enabling occurs downstream
logger
.warn("Insufficient permissions to create project: "
+ ForceExceptionUtils.getRootCauseMessage(e));
InsufficientPermissionsException ex = (InsufficientPermissionsException) e.getTargetException();
// occurred during project create/update which determines message text
ex.setShowUpdateCredentialsMessage(true);
// show dialog
DialogUtils.getInstance().presentInsufficientPermissionsDialog(ex);
updateErrorStatus(Messages.getString("InsufficientPermissions.User.OrganizationSettings.message",
new String[] { ex.getConnection().getUsername() }));
return this;
} else if (cause instanceof InvalidLoginException) {
// log failure
logger.warn("Unable to perform sync check: "
+ ForceExceptionUtils.getRootCauseMessage(e.getTargetException()));
InvalidLoginException ex = (InvalidLoginException) e.getTargetException();
// occurred during project create/update which determines message text
ex.setShowUpdateCredentialsMessage(false);
// choose further project create direction
DialogUtils.getInstance().invalidLoginDialog(ex.getMessage(), null, false);
updateErrorStatus(UIMessages.getString(
"ProjectCreateWizard.OrganizationPage.InvalidConnection.WithHost.message",
new String[] { getDeploymentWizardModel().getDestinationOrg().getEndpointServer() }));