code: public void setDataFor(String activity, Set<String> attributes) throws CompatibilityException {
                  validateActivity(activity);
                  validateAttributes(attributes);
                  if (!attributes.isEmpty()) {
                          Map<String, Set<DataUsage>> dataUsage = new HashMap<>();
                          for (String attribute : attributes) {
                                  dataUsage.put(attribute, new HashSet<>(validUsageModes));
                          }
                          activityDataUsage.put(activity, dataUsage);
                  }
          }
docs: Sets the data attributes used by the given activity.<br>
  The given activity/attributes have to be known by the context, i.e.
  be contained in the activity/attribute list.
  
  @param activity Activity for which the attribute usage is set.
  @param attributes Attributes used as input by the given activity.
  @throws ParameterException
  @throws CompatibilityException
  @throws IllegalArgumentException If the given activity/attributes are
  not known.
  @throws NullPointerException If the attribute set is
  <code>null</code>.
  @see #getAttributes()