finish generating and storing Publish entities