try {
if(!storeAlreadyTried) {
synchronized (this) {
Context context = Context.getUnchecked();
if (context != null) {
UserPassword u = null;
CredentialStore cs = CredentialStoreFactory.getCredentialStore(getCredentialStore());
if(cs!=null) {
u = (UserPassword)cs.load(getUrl(),STORE_TYPE,context.getCurrentUserId());
}
if(u!=null) {
this.user = u.getUser();
this.password = u.getPassword();
return true;
}
storeAlreadyTried = true;
}
}