private void lifeCycle() {
			String s = "";

			String event1StringView = "";
			String event2StringView = "";

			while (isInputActive) {
				try {
					s = readInput();
					if (s.length()==0) {
						break;
					}

					if (this.isValidInput(s)) {

						if (!isEventSet1) {
							event1StringView = s;
							this.isEventSet1 = true;
							System.out.println(MSG_EVENT1ISOK);
						} else

						if (!isEventSet2) {
							event2StringView = s;
							this.isEventSet2 = true;
							System.out.println(MSG_EVENT2ISOK);

							this.isInputActive = false;
							break;
						}
					} else {
						System.out.println(MSG_WELCOME);
					}
				} catch (IOException e) {
					e.printStackTrace();
				}
			}
			action(event1StringView, event2StringView);
		}