PublishCommand.getInstance = function() {
    if (PublishCommand.instance === null) {
        PublishCommand.instance = new PublishCommand();
    }
    return PublishCommand.instance;