code: private boolean isRelational(EntityMetadata m)
      {
          // if related via join table OR contains relations.
          return m.isRelationViaJoinTable() || (m.getRelationNames() != null && (!m.getRelationNames().isEmpty()));
      }
docs: Returns true, if associated entity holds relational references(e.g. @OneToMany
  etc.) else false.
  
  @param m
  entity metadata
  
  @return true, if holds relation else false