code: private Set<PhysicalEntity> getFlattenedMembers(Complex cx) {
  		Set<PhysicalEntity> set = new HashSet<PhysicalEntity>();
  		for (PhysicalEntity mem : cx.getComponent()) {
  			if (mem instanceof Complex) {
  				if (!hasNonComplexMember((Complex) mem)) {
  					set.add(mem);
  				} else {
  					set.addAll(getFlattenedMembers((Complex) mem));
  				}
  			} else set.add(mem);
  		}
  
  		return set;
  	}
docs: /*
  Gets the members of the Complex that needs to be displayed in a flattened view.
  @param cx to get members
  @return members to display