if (mapItem.isAccountid()) {
result = new AbstractMap.SimpleEntry<String, Attribute>(objValues.iterator().next().toString(), null);
} else if (mapItem.isPassword() && subject instanceof SyncopeUser) {
String passwordAttrValue = password;
if (StringUtils.isBlank(passwordAttrValue)) {
SyncopeUser user = (SyncopeUser) subject;
if (user.canDecodePassword()) {
try {
passwordAttrValue = PasswordEncoder.decode(user.getPassword(), user.getCipherAlgorithm());
} catch (Exception e) {
LOG.error("Could not decode password for {}", user, e);
}
} else if (resource.isRandomPwdIfNotProvided()) {
try {