} catch (SessionExpiredException e) {
}
if (user == null) {
data.setAuthenticated(false);
try {
UserSession userSession = getUserSession(sessionId);
data.addError(userSession.translate("directLinkAuthenticationFailed"));
} catch (SessionExpiredException e) {
data.addError("You specified an invalid username/password combination. The user in the direct link could not be authenticated.");
}
return data;
}