code: @Override
      public ListAttribute<X, ?> getDeclaredList(String paramName)
      {
          PluralAttribute<X, ?, ?> declaredAttrib = getDeclaredPluralAttribute(paramName);
  
          if (isListAttribute(declaredAttrib))
          {
              return (ListAttribute<X, ?>) declaredAttrib;
          }
  
          throw new IllegalArgumentException(
                  "attribute of the given name and type is not present in the managed type, for name:" + paramName);
      }
docs: /*
  (non-Javadoc)
  
  @see
  javax.persistence.metamodel.ManagedType#getDeclaredList(java.lang.String)