. saw this version https://github.com/dotCMS/dotCMS/blob/20ec205974ff9ad02801ca061e71d3e49bdf83ed/src/com/dotcms/publisher/ajax/RemotePublishAjaxAction.java and I just copy and paste this catch.