code: public ArrayList<Field> getAllFields() {
          final ArrayList<Field> r = new ArrayList<Field>();
          final List<String> ids = new ArrayList<String>();
          if (getFields() != null) {
              for (Field field : getFields()) {
                  r.add(field);
                  ids.add(field.getId());
              }
          }
          if (getExtendzEntity() != null) {
              for (Field field : getExtendzEntity().getAllFields()) {
                  if (!ids.contains(field.getId())) {
                      r.add(field);
                  }
              }
          }
          return r;
      }
docs: Return the list of fields including inherited ones.
  
  @return The list