private void loadState() throws IOException
	{
		try
		{
			String path = CA_PERSISTENCE_PATH + File.separator + CA_ID;
			File nodeFile = new File(path);
			ObjectInputStream ois = new ObjectInputStream(new FileInputStream(nodeFile));
			CA ca = (CA) ois.readObject();
			if (ca.getUserId() != null && ca.getSecurityAgent() != null
					&& ca.getRegisteredNodeData() != null
					&& ca.getNode() != null
					&& ca.getContactList() != null)
			{
				this.securityAgent.setKeyPair(ca.getSecurityAgent().getKeyPair());
				this.registeredNodesData = ca.getRegisteredNodeData();
				//this.node.loadState(ca.getNode());
				this.contactList = ca.getContactList();
			}
			else
			{
				throw new IOException("Can't load CA data");
			}	
		}
		catch (ClassNotFoundException cnfe)
		{
			throw new IOException("Corrupted file, can't load CA state");
		}
	}