code: public static Field[] getDeclaredFields(Field relationalField)
      {
          Field[] fields;
          if (isCollection(relationalField.getType()))
          {
              fields = PropertyAccessorHelper.getGenericClass(relationalField).getDeclaredFields();
          }
          else
          {
              fields = relationalField.getType().getDeclaredFields();
          }
          return fields;
      }
docs: Gets the declared fields.
  
  @param relationalField
  the relational field
  @return the declared fields