code: public void validateFields() throws IllegalStateException {
  		for (String rf : requiredFields)
  			if (textFields.get(rf).getText().trim().isEmpty()) {
  				textFields.get(rf).requestFocusInWindow();
  				throw new IllegalStateException(Constant.messages.getString(
  						"authentication.method.script.dialog.error.text.required", rf));
  			}
  	}
docs: Validate the fields of the panel, checking that all the required fields has been filled. If
  any of the fields are not in the proper state, an IllegalStateException is thrown, containing
  a message describing the problem.
  
  @throws IllegalStateException the illegal state exception