* if an exception occurs while storing
*/
public void storeChilds(PrintWriter aWriter, int indent, Object aCluster,
StoreDescription parentDesc) throws Exception {
if (aCluster instanceof CatalinaCluster) {
CatalinaCluster cluster = (CatalinaCluster) aCluster;
// Store nested <Membership> element
MembershipService service = cluster.getMembershipService();
if (service != null) {
storeElement(aWriter, indent, service);
}
// Store nested <Sender> element
ClusterSender sender = cluster.getClusterSender();
if (sender != null) {
storeElement(aWriter, indent, sender);
}
// Store nested <Receiver> element
ClusterReceiver receiver = cluster.getClusterReceiver();
if (receiver != null) {
storeElement(aWriter, indent, receiver);
}
// Store nested <Deployer> element
ClusterDeployer deployer = cluster.getClusterDeployer();
if (deployer != null) {
storeElement(aWriter, indent, deployer);
}
// Store nested <Valve> element
// ClusterValve are not store at Hosts element, see
Valve valves[] = cluster.getValves();
storeElementArray(aWriter, indent, valves);
if (aCluster instanceof SimpleTcpCluster) {
// Store nested <Listener> elements
LifecycleListener listeners[] = ((SimpleTcpCluster)cluster).findLifecycleListeners();