final String status = Messages.get("label.publication.task", "Publishing content");
Info.display(status, status);
WorkInProgressActionItem.setStatus(status);
final List<String> allUuids = getAllUuids();
JahiaContentManagementService.App.getInstance().publish(allUuids, nodeProperties, null,
new BaseAsyncCallback() {
public void onApplicationFailure(Throwable caught) {
WorkInProgressActionItem.removeStatus(status);
Info.display("Cannot publish", "Cannot publish");
com.google.gwt.user.client.Window.alert("Cannot publish " + caught.getMessage());
}