code: @Deprecated
      public EnumSet<AttributeAccess.Flag> getFlags() {
          if (flags.isEmpty()) {
              return EnumSet.noneOf(AttributeAccess.Flag.class);
          }
          AttributeAccess.Flag[] array = flags.toArray(new AttributeAccess.Flag[flags.size()]);
          return array.length == 1 ? EnumSet.of(array[0]) : EnumSet.of(array[0], array);
      }
docs: Gets a set of any {@link org.jboss.as.controller.registry.AttributeAccess.Flag flags} used
  to indicate special characteristics of the attribute
  
  @return the flags. Will not be {@code null} but may be empty.
  
  @deprecated In the next release, the return type of this method will become simply {@code Set} and the returned object will be immutable, so any callers should update their code to reflect that