@Post
	public Representation accept(Representation entity) throws IOException
	{
		
		try
		{
			host = (getRequestAttributes().get("host") == null) ? host : 
				((String) getRequestAttributes().get("host")).trim();
			
			port = (getRequestAttributes().get("port") == null) ? port : 
				Integer.parseInt(((String) getRequestAttributes().get("port")).trim());
			
			option = (getRequestAttributes().get("option") == null) ? "" : 
				((String) getRequestAttributes().get("option")).trim();
			
			strXml = (entity == null) ? null : ((String) entity.getText()).trim();
			
			if(option.equals("saveAndRun"))
			{
				if(IpcClient.getService(host, port, "Firewall").saveAndRun(strXml, null))
					return new StringRepresentation("<message>Firewall saved and running</message>",  MediaType.TEXT_XML);
				else
					return new StringRepresentation("<error>Error: Firewall saved and running</error>",  MediaType.TEXT_XML);
			}
			else if(option.equals("save"))
			{
				if(IpcClient.getService(host, port, "Firewall").save(strXml))
					return new StringRepresentation("<message>Firewall saved</message>",  MediaType.TEXT_XML);
				else
					return new StringRepresentation("<error>Error: firewall saving</error>",  MediaType.TEXT_XML);
			}
			else
				return new StringRepresentation("<error>Invalid Option POST</error>", MediaType.TEXT_XML);
		}
		catch(Exception e)
		{
			e.printStackTrace();
			return new StringRepresentation("<error>Firewall Error Exception</error>",  MediaType.TEXT_XML);
		}

	}