protected string Process(Dictionary<string, string> request) {
EventHandler process_event = ProcessEvent;
string response = String.Empty;
if (process_event != null) {
try {
process_event(request, EventArgs.Empty);
response = request["response"];
} catch (Exception e) {
response = SocialUtils.ObjectToXml<string>(e.Message);
}
}
if(request.ContainsKey("html")) {
response = "<html><head><meta HTTP-EQUIV=\"REFRESH\" " +
"content=\"0;url=html\" /></head></html>";
}
return response;
}