code: private boolean hasNonComplexMember(Complex cx) {
  		for (PhysicalEntity mem : cx.getComponent()) {
  			if (!(mem instanceof Complex) || hasNonComplexMember((Complex) mem)) {
  				return true;
  			}
  		}
  		return false;
  	}
docs: /*
  Checks if a Complex contains any PhysicalEntity member which is not a Complex.
  @param cx to check
  @return true if there is a non-complex member