private static final String CONTENT_POST = "</b><br />";
private static final String LINK_POST = "</div>";
public void execute(CommandResponse response) {
if (response instanceof ExportToCsvResponse) {
ExportToCsvResponse resp = (ExportToCsvResponse) response;
if (resp.getDocumentId() != null) {
UrlBuilder ub = new UrlBuilder();
ub.setPath("d/csvDownload");
ub.setParameter("id", resp.getDocumentId());
String link = ub.buildString().replaceFirst("http:///", GWT.getHostPageBaseURL());
Window window = new DockableWindow();
window.setTitle(messages.exportToCsvWindowTitle());
String content = CONTENT_PRE + messages.exportToCsvContentReady() + CONTENT_POST;