public ServerStatus getServerStatus(String id) throws Exception
	{
		String response = getServer(id);

		if (containsErrorMessage(response))
		{
			if (!listServerIds().contains(id))
			{
				return null;
			}
			else
			{
				throw new Exception("Error retrieving instance status with id:" + id);
			}
		}

		Document doc = stringToXmlDocument(response);
		String status = doc.getElementsByTagName("state").item(0).getTextContent().trim();

		try
		{
			return ServerStatus.valueOf(status.toUpperCase().trim());
		}
		catch (Exception e)
		{
			return ServerStatus.UNKOWN;
		}

	}