implemented pusblish method for the default entity service