if (resources instanceof ProxyDirContext)
resources = ((ProxyDirContext) resources).getDirContext();
storeElement(aWriter, indent, resources);
// Store nested <InstanceListener> elements
String iListeners[] = context.findInstanceListeners();
getStoreAppender().printTagArray(aWriter, "InstanceListener",
indent + 2, iListeners);
// Store nested <WrapperListener> elements
String wLifecycles[] = context.findWrapperLifecycles();