LOG.debug("Preparing resource attributes for {} on resource {} with attributes {}",
subject, resource, subject.getAttrs());
final ConfigurableApplicationContext context = ApplicationContextProvider.getApplicationContext();
final VirAttrCache virAttrCache = context.getBean(VirAttrCache.class);
final PasswordGenerator passwordGenerator = context.getBean(PasswordGenerator.class);
Set<Attribute> attributes = new HashSet<Attribute>();
String accountId = null;
for (AbstractMappingItem mapping : attrUtil.getMappingItems(resource, MappingPurpose.PROPAGATION)) {