added bean to JavaConfig for publish service