code: private void setParentElement(Element parentElement) {
  		synchronized(lock) {
  			checkNotFrozen();
  			if(this.parentElement != null) throw new IllegalStateException("parentElement already set");
  			this.parentElement = parentElement;
  		}
  		assert checkPageAndParentElement();
  	}
docs: Sets the parent element of this element.