code: public void storeInDb()
          throws EFapsException
      {
          for (final Entry<String, UserAttribute> entry : this.attributes.entrySet()) {
              if (entry.getValue().isUpdate()) {
                  final QueryBuilder queryBldr = new QueryBuilder(Type.get(entry.getValue().getType()));
                  queryBldr.addWhereAttrEqValue("UserLink", this.userId.toString());
                  if (UserAttributesSet.MAPPER.get(entry.getValue().getType()).keyAttribute != null) {
                      queryBldr.addWhereAttrEqValue(UserAttributesSet.MAPPER.get(entry.getValue().getType()).keyAttribute,
                                                entry.getKey());
                  }
                  final InstanceQuery query = queryBldr.getQuery();
                  query.execute();
                  final Update update;
                  if (query.next()) {
                      update = new Update(query.getCurrentValue());
                  } else {
                      update = new Insert(entry.getValue().getType());
                      if (UserAttributesSet.MAPPER.get(entry.getValue().getType()).keyAttribute != null) {
                          update.add(UserAttributesSet.MAPPER.get(entry.getValue().getType()).keyAttribute,
                                          entry.getKey());
                      }
                      update.add("UserLink", this.userId.toString());
                  }
                  update.add("Value", entry.getValue().getValue());
                  update.execute();
                  update.close();
              }
          }
          this.attributes.clear();
      }
docs: This method stores all user attributes of this user attributes set into
  the eFaps database. Only user attributes which where added or updated in
  this session will be updated/inserted in the eFpas database.
  
  @throws EFapsException if update of the user attributes failed