@Override
	public void stateChanged(ChangeEvent args) {
		if(this.views.getSelectedComponent() != this.requestView) {
			String text = this.requestView.getContents();
			if(!Utilities.isNullOrWhitespace(text)) {
				try {
					Document doc = Utilities.parseXml(text);
					this.getRequest().process(doc);
					this.query.setDocument(doc);
				} catch(Exception e) {
					logger.error("Unable to change state", e);
				}
			}
		}
	}