private void sendNewComment(String text) { newCommentLayout.clear(); newCommentLayout.add(new Image(images.spinner())); assetService.addToDiscussionForAsset( artifact.getUuid(), text, new GenericCallback<List<DiscussionRecord>>() { public void onSuccess(List<DiscussionRecord> result) { showNewCommentButton(); updateCommentList(result); } }); }