changed Template to inner class of ClusterConnection