@Override
	public String process(String content) throws ProcessorException {
		pipeline = new SimpleAuthenticationPipeline();
		context = new UnAuthorizeContext();
		pipeline.setBasic(new LogoutEntryValve());
		pipeline.addValve(new DecoderValve());
		pipeline.addValve(new ValidationValve());
		pipeline.addValve(new UnAuthorizeValve());
		pipeline.addValve(new EncodeValve());
		pipeline.addValve(new FlushValve());
		pipeline.setContext(context);
		try {
			pipeline.invoke(context.getRequest(), context.getResponse(), null);
		} catch (ValveException e) {
			User user = context.getRequest().getCurrentUser();
			String response = "";
			if (user == null || user.getUserName() == null) {
				response = ExceptionWrapper.toJSON(503, "Internal Error");
			} else {
				response = ExceptionWrapper.toJSON(user, e.getCode(),
						e.getMessage());
			}
			return response;
		}
		return context.getResponse().getResponse();
	}