Changed the submitPublication to make it to work with sample publication