code: public void handleChangeTemplateContext(final CmsContainerPageElementPanel element, final String newValue) {
  
          if (CmsStringUtil.isEmptyOrWhitespaceOnly(newValue) || CmsTemplateContextInfo.EMPTY_VALUE.equals(newValue)) {
              if (CmsInheritanceContainerEditor.getInstance() != null) {
                  CmsInheritanceContainerEditor.getInstance().removeElement(element);
              } else {
                  removeElement(element, ElementRemoveMode.silent);
              }
          }
      }
docs: Handler that gets called when the template context setting of an element was changed by the user.<p>
  
  @param element the element whose template context setting was changed
  
  @param newValue the new value of the setting