code: public static TreeMember getTreeMember(final EntityContainer container) {
  	// Must be identifiable to be a tree member
  	if (!(container instanceof Identifiable)) {
  	    return null;
  	}
  	// Entity with no identifable parent (or JALSE).
  	if (!(container instanceof Entity) || ((Entity) container).getContainer() == null) {
  	    return TreeMember.ROOT;
  	}
  	// Entity with children
  	else if (container.hasEntities()) {
  	    return TreeMember.NODE;
  	}
  	// Entity with no children
  	else {
  	    return TreeMember.LEAF;
  	}
      }
docs: Sets the correct {@link TreeMember} tag for the container.
  
  @param container
  Container to check for.
  @return The member enum.