name = new TextBoxItem("name", "Name");
else
name = new TextItem("name", "Name");
NumberBoxItem callTimeout = new NumberBoxItem("callTimeout", "Call Timeout");
NumberBoxItem checkPeriod = new NumberBoxItem("checkPeriod", "Check Period");
TextBoxItem connectionAddress= new TextBoxItem("clusterConnectionAddress", "Connection Address");
NumberBoxItem connectionTtl= new NumberBoxItem("connectionTTL", "Connection TTL");
TextBoxItem connectorRef= new TextBoxItem("connectorRef", "Connector Ref");
TextBoxItem groupName= new TextBoxItem("discoveryGroupName", "Discovery Group");
CheckBoxItem forward = new CheckBoxItem("forwardWhenNoConsumers","Forward?");
NumberBoxItem maxHops = new NumberBoxItem("maxHops", "Max Hops");
NumberBoxItem retryInterval = new NumberBoxItem("retryInterval", "Retry Interval");
NumberBoxItem maxRetryInterval = new NumberBoxItem("maxRetryInterval", "Max Retry");
NumberBoxItem reconnect = new NumberBoxItem("reconnectAttempts", "Reconnect Attempts");
CheckBoxItem duplicateDetection = new CheckBoxItem("duplicateDetection","Duplicate Detection?");
if(isCreate)
form.setFields(name, groupName, connectorRef, connectionAddress);