private AutoKeeperCollector autoKeeperCollector;
public void doAdd(@FormGroup("autokeeperClusterInfo") Group autokeeperClusterInfo,
@FormField(name = "formAutokeeperClusterError", group = "autokeeperClusterInfo") CustomErrors err,
Navigator nav) throws Exception {
AutoKeeperCluster autoKeeperCluster = new AutoKeeperCluster();
autokeeperClusterInfo.setProperties(autoKeeperCluster);
String zkClustersString = autokeeperClusterInfo.getField("zookeeperClusters").getStringValue();
String[] zkClusters = StringUtils.split(zkClustersString, ";");
autoKeeperCluster.setServerList(Arrays.asList(zkClusters));
try {
autoKeeperClusterService.createAutoKeeperCluster(autoKeeperCluster);
} catch (RepeatConfigureException rce) {
err.setMessage("invalidNode");