code: private void cboClassAutoSuggestItemStateChanged(java.awt.event.ItemEvent evt) {
  		Object item = evt.getItem(); // Get the affected item
  		if (item instanceof PredicateItem) {
  
  			if (evt.getStateChange() == ItemEvent.DESELECTED ){
  				predicateSubjectMap = createPredicateSubjectMap();
  				predicateSubjectMap.setTargetMapping(txtClassUriTemplate.getText());
  				isSubjectClassValid = true;
  			}
  			else {
  				PredicateItem selectedItem = (PredicateItem) item;
  				predicateSubjectMap = new MapItem(selectedItem);
  				predicateSubjectMap.setTargetMapping(txtClassUriTemplate.getText());
  				isSubjectClassValid = true;
  			}
  
  		} else if (item instanceof String) {
  			String className = item.toString();
  			if (!className.isEmpty()) {
  				isSubjectClassValid = false;
  			}
  			isSubjectClassValid = true;
  		}
  		validateSubjectClass();
  	}
docs: GEN-LAST:event_txtClassUriKeyPressed