public void doClickWork(Widget showPromptRelativeTo) {
selectedContentItem = contentItemListBox.getSelectedContentItem();
long contentItemId = selectedContentItem.getId();
Date creationDate = republish ? selectedContentItem.getTimestamp() : new Date();
ContentItemType contentItemType = contentItemTypeSelector.getSelectedConstant();
AssetType assetType =
contentItemType == ContentItemType.ASSET ? assetTypeSelector.getSelectedConstant() : null;
String content =
contentEditor.isVisible() ? contentEditor.getContent() : imageUrlTextBox.getText();
boolean isImage = contentItemType == ContentItemType.ASSET