class JsonHandler extends HandlerBase {

	protected JsonObjectBuilder showAgent(Agent agent, String label) {
		JsonObjectBuilder agentBuilder = Json.createObjectBuilder();
		agentBuilder.add("kind", label);
		agentBuilder.add("name", agent.getName());
		agentBuilder.add("type", agent.getType().toString());
		String s = agent.getAddress();
		if (s != null) {
			agentBuilder.add("address", s);
		}
		if ((s = agent.getTelephone()) != null) {
			agentBuilder.add("telephone", s);
		}
		if ((s = agent.getFax()) != null) {
			agentBuilder.add("fax", s);
		}
		if ((s = agent.getEmail()) != null) {
			agentBuilder.add("email", s);
		}
		if ((s = agent.getWeb()) != null) {
			agentBuilder.add("web", s);
		}
		return agentBuilder;
	}

	public  JsonHandler();
	public  JsonHandler(String name, String release, int[] date, String note, String rights);

}