code: public static Set<Class<? extends Entity>> getTypeAncestry(final Class<? extends Entity> type) {
  	validateType(type);
  
  	final Set<Class<? extends Entity>> ancestry = new HashSet<>();
  	addDirectTypeAncestors(ancestry, type);
  	return ancestry;
      }
docs: Gets all ancestors for the specified descendant type (not including {@link Entity}).
  
  @param type
  Descendant type.
  @return All ancestors or an empty set if its only ancestor is {@link Entity}.
  
  @throws IllegalArgumentException
  If the Entity type is invalid
  
  @see #validateType(Class)