code: public boolean setAttributes(IAttributeStore attributes) {
          int successes = 0;
          for (Map.Entry<String, Object> entry : attributes.getAttributes().entrySet()) {
              if (scope.setAttribute(entry.getKey(), entry.getValue())) {
                  successes++;
              }
          }
          // expect every value to have been added
          return (successes == attributes.size());
      }
docs: {@inheritDoc}