@SuppressWarnings("unused")
	@Init
	public void init() {
		
		try {
			this.comm = new NetworkCommunication(SYSTEM_TYPE, IP_ADDRESS, PORT, 0, PRIVATE_KEY, PROTOCOL_TYPE);
			if (PROTOCOL_TYPE == ProtocolTypeEnum.HAI_OMNI_LINK_II) {
				// Register a listener to receive notifications from the controller
				((NetworkCommunication) comm).addListener(new NetworkCommunication.NotificationListener() {
					public void notify(Message notification) {
						System.out.println("Notification: " + notification);
					}
				});
			}
			
			//Open communication session
			comm.open();
			
			//Enable notifications
			ReplyMessage notifications = comm.execute(new NotificationsCommand(true));
			
			//Enable polling
			try {
				(new PollingThread(comm)).start();
			} catch (Exception e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
		
			//Plugin initialized
			System.out.println(PLUGIN_NAME + "Plugin initialized.");
			
		} catch (CommunicationException ce) {
			// TODO Auto-generated catch block
			System.err.println("Could not open " + PLUGIN_NAME + " communication session");
			ce.printStackTrace();
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		
	}