private ICompletionHandle createLoginHandle(UserCredentials credentials, Path rootPath) {
final ILoginEvent loginEvent = new LoginEvent(credentials, rootPath);
return new ICompletionHandle() {
public void onCompletionSuccess() {
notifyLoginStatus(true, loginEvent);
}
public void onCompletionFailure(RollbackReason reason) {