removed reference to unavailable field versionpaths
moved state constants to the entity class
added publish service
added publishService references to the central entity service
added bean to JavaConfig for publish service