public static void main(String[] args) 
	{
		replicaA = new ReplicaAUDPThread(Parameters.UDP_PORT_REPLICA_A, args);
		while (true)
		{
			if(replicaA.replicaManagerListener.shouldRestart())
			{
				replicaA.stopServers();
				replicaA.startServers();
				replicaA.replicaManagerListener.resetShouldRestart();
			}
			if(replicaA.replicaManagerListener.hasCrashed())
			{
				replicaA.aLog.info("Crash detected in ReplicaA Replica Manager UDP Thread, restarting UDP");
				try {
					replicaA.replicaManagerListener = new ReplicaManagerUDPListener(Parameters.UDP_PORT_REPLICA_A);
				} catch (SocketException e) {
					replicaA.aLog.info("ReplicaA Replica Manager creating failed");
				}
				replicaA.replicaManagerListener.start();
			}
		}
	}