code: public Set<AttributeAccess.Flag> getFlags() {
          if (attributeAccess == null) {
              return Collections.emptySet();
          }
          return attributeAccess.getFlags();
      }
docs: Gets the flags associated with this attribute.
  @return the flags. Will not return {@code null}