code: public String getRefCollectionType(Reference ref) {
  		String type = ref.getCollectionType();
  		return (type == null ? "set" : type.toLowerCase());
  	}
docs: Collection type can be set, list, bag or map. It corresponds to the
  Hibernate collection types.