} else if (from.getCredential() != null) {
credBuilder.credential(from.getCredential());
}
if (from.getSudoPassword() != null){
credBuilder.password(from.getSudoPassword());
credBuilder.authenticateSudo(true);
}
LoginCredentials creds = credBuilder.build();
builder.credentials(creds);
credentialStore.put("node#" + from.getId(), creds);
}