class AssetValidatedCallback implements RemoteCallback<List<ValidationMessage>> {

    @Override
    public void callback(final List<ValidationMessage> validationMessages) {
        if (validationMessages == null || validationMessages.isEmpty()) {
            notifyValidationSuccess();
        } else {
            validationPopup.showMessages(validationMessages);
        }
        if (validationFinishedCommand != null) {
            validationFinishedCommand.execute();
        }
    }

    public  AssetValidatedCallback(final Command validationFinishedCommand,
                                  final Event<NotificationEvent> notificationEvent,
                                  final ValidationPopup validationPopup);

}