doAuthorizedAction(req, res, new A() {
public void a() throws Exception {
res.setContentType( "text/html" );
RestAPI api = getAPI();
String comment = req.getHeader("Checkin-Comment");
api.post(req.getRequestURI(), req.getInputStream(), (comment != null)? comment : "");
res.getWriter().write( "OK" );
}
});
}