code: @Override
      public Set<Attribute<X, ?>> getDeclaredAttributes()
      {
          Set<Attribute<X, ?>> attributes = new HashSet<Attribute<X, ?>>();
  
          if (declaredSingluarAttribs != null)
          {
              attributes.addAll(declaredSingluarAttribs.values());
          }
          if (declaredPluralAttributes != null)
          {
              attributes.addAll(declaredPluralAttributes.values());
          }
  
          return attributes;
      }
docs: /*
  (non-Javadoc)
  
  @see javax.persistence.metamodel.ManagedType#getDeclaredAttributes()