public AWResponseGenerating postsAction ()
{
AWRequest request = request();
AWResponse response = application().createResponse(request());
response.setContentType(AWContentType.TextXml);
if ("GET".equals(request.method())) {
String pi = request.formValueForKey("pi");
List posts = PostService.getPosts();
if (pi != null) {
int postIndex = Integer.parseInt(pi);
posts = ListUtil.list(posts.get(postIndex));