001    /*
002     * XML Type:  web-appType
003     * Namespace: http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1
004     * Java type: org.apache.geronimo.xbeans.geronimo.web.tomcat.TomcatWebAppType
005     *
006     * Automatically generated - do not modify.
007     */
008    package org.apache.geronimo.xbeans.geronimo.web.tomcat.impl;
009    /**
010     * An XML web-appType(@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1).
011     *
012     * This is a complex type.
013     */
014    public class TomcatWebAppTypeImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.apache.geronimo.xbeans.geronimo.web.tomcat.TomcatWebAppType
015    {
016        
017        public TomcatWebAppTypeImpl(org.apache.xmlbeans.SchemaType sType)
018        {
019            super(sType);
020        }
021        
022        private static final javax.xml.namespace.QName ENVIRONMENT$0 = 
023            new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/deployment-1.2", "environment");
024        private static final javax.xml.namespace.QName CONTEXTROOT$2 = 
025            new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1", "context-root");
026        private static final javax.xml.namespace.QName WORKDIR$4 = 
027            new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1", "work-dir");
028        private static final javax.xml.namespace.QName CLUSTERING$6 = 
029            new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/j2ee/application-2.0", "clustering");
030        private static final javax.xml.namespace.QName WEBCONTAINER$8 = 
031            new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/naming-1.2", "web-container");
032        private static final javax.xml.namespace.QName HOST$10 = 
033            new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1", "host");
034        private static final javax.xml.namespace.QName CROSSCONTEXT$12 = 
035            new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1", "cross-context");
036        private static final javax.xml.namespace.QName DISABLECOOKIES$14 = 
037            new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1", "disable-cookies");
038        private static final javax.xml.namespace.QName VALVECHAIN$16 = 
039            new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1", "valve-chain");
040        private static final javax.xml.namespace.QName LISTENERCHAIN$18 = 
041            new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1", "listener-chain");
042        private static final javax.xml.namespace.QName TOMCATREALM$20 = 
043            new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1", "tomcat-realm");
044        private static final javax.xml.namespace.QName MANAGER$22 = 
045            new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1", "manager");
046        private static final javax.xml.namespace.QName CLUSTER$24 = 
047            new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1", "cluster");
048        private static final javax.xml.namespace.QName ABSTRACTNAMINGENTRY$26 = 
049            new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/naming-1.2", "abstract-naming-entry");
050        private static final org.apache.xmlbeans.QNameSet ABSTRACTNAMINGENTRY$27 = org.apache.xmlbeans.QNameSet.forArray( new javax.xml.namespace.QName[] { 
051            new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/naming-1.2", "gbean-ref"),
052            new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/naming-1.2", "persistence-context-ref"),
053            new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/naming-1.2", "persistence-unit-ref"),
054            new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/naming-1.2", "abstract-naming-entry"),
055        });
056        private static final javax.xml.namespace.QName EJBREF$28 = 
057            new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/naming-1.2", "ejb-ref");
058        private static final javax.xml.namespace.QName EJBLOCALREF$30 = 
059            new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/naming-1.2", "ejb-local-ref");
060        private static final javax.xml.namespace.QName SERVICEREF$32 = 
061            new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/naming-1.2", "service-ref");
062        private static final javax.xml.namespace.QName RESOURCEREF$34 = 
063            new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/naming-1.2", "resource-ref");
064        private static final javax.xml.namespace.QName RESOURCEENVREF$36 = 
065            new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/naming-1.2", "resource-env-ref");
066        private static final javax.xml.namespace.QName MESSAGEDESTINATION$38 = 
067            new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/naming-1.2", "message-destination");
068        private static final javax.xml.namespace.QName SECURITYREALMNAME$40 = 
069            new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1", "security-realm-name");
070        private static final javax.xml.namespace.QName SECURITY$42 = 
071            new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/j2ee/application-2.0", "security");
072        private static final javax.xml.namespace.QName SERVICE$44 = 
073            new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/deployment-1.2", "service");
074        private static final org.apache.xmlbeans.QNameSet SERVICE$45 = org.apache.xmlbeans.QNameSet.forArray( new javax.xml.namespace.QName[] { 
075            new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/deployment-1.2", "service"),
076            new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/deployment-1.2", "gbean"),
077        });
078        private static final javax.xml.namespace.QName PERSISTENCE$46 = 
079            new javax.xml.namespace.QName("http://java.sun.com/xml/ns/persistence", "persistence");
080        
081        
082        /**
083         * Gets the "environment" element
084         */
085        public org.apache.geronimo.deployment.xbeans.EnvironmentType getEnvironment()
086        {
087            synchronized (monitor())
088            {
089                check_orphaned();
090                org.apache.geronimo.deployment.xbeans.EnvironmentType target = null;
091                target = (org.apache.geronimo.deployment.xbeans.EnvironmentType)get_store().find_element_user(ENVIRONMENT$0, 0);
092                if (target == null)
093                {
094                    return null;
095                }
096                return target;
097            }
098        }
099        
100        /**
101         * True if has "environment" element
102         */
103        public boolean isSetEnvironment()
104        {
105            synchronized (monitor())
106            {
107                check_orphaned();
108                return get_store().count_elements(ENVIRONMENT$0) != 0;
109            }
110        }
111        
112        /**
113         * Sets the "environment" element
114         */
115        public void setEnvironment(org.apache.geronimo.deployment.xbeans.EnvironmentType environment)
116        {
117            synchronized (monitor())
118            {
119                check_orphaned();
120                org.apache.geronimo.deployment.xbeans.EnvironmentType target = null;
121                target = (org.apache.geronimo.deployment.xbeans.EnvironmentType)get_store().find_element_user(ENVIRONMENT$0, 0);
122                if (target == null)
123                {
124                    target = (org.apache.geronimo.deployment.xbeans.EnvironmentType)get_store().add_element_user(ENVIRONMENT$0);
125                }
126                target.set(environment);
127            }
128        }
129        
130        /**
131         * Appends and returns a new empty "environment" element
132         */
133        public org.apache.geronimo.deployment.xbeans.EnvironmentType addNewEnvironment()
134        {
135            synchronized (monitor())
136            {
137                check_orphaned();
138                org.apache.geronimo.deployment.xbeans.EnvironmentType target = null;
139                target = (org.apache.geronimo.deployment.xbeans.EnvironmentType)get_store().add_element_user(ENVIRONMENT$0);
140                return target;
141            }
142        }
143        
144        /**
145         * Unsets the "environment" element
146         */
147        public void unsetEnvironment()
148        {
149            synchronized (monitor())
150            {
151                check_orphaned();
152                get_store().remove_element(ENVIRONMENT$0, 0);
153            }
154        }
155        
156        /**
157         * Gets the "context-root" element
158         */
159        public java.lang.String getContextRoot()
160        {
161            synchronized (monitor())
162            {
163                check_orphaned();
164                org.apache.xmlbeans.SimpleValue target = null;
165                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(CONTEXTROOT$2, 0);
166                if (target == null)
167                {
168                    return null;
169                }
170                return target.getStringValue();
171            }
172        }
173        
174        /**
175         * Gets (as xml) the "context-root" element
176         */
177        public org.apache.xmlbeans.XmlString xgetContextRoot()
178        {
179            synchronized (monitor())
180            {
181                check_orphaned();
182                org.apache.xmlbeans.XmlString target = null;
183                target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(CONTEXTROOT$2, 0);
184                return target;
185            }
186        }
187        
188        /**
189         * True if has "context-root" element
190         */
191        public boolean isSetContextRoot()
192        {
193            synchronized (monitor())
194            {
195                check_orphaned();
196                return get_store().count_elements(CONTEXTROOT$2) != 0;
197            }
198        }
199        
200        /**
201         * Sets the "context-root" element
202         */
203        public void setContextRoot(java.lang.String contextRoot)
204        {
205            synchronized (monitor())
206            {
207                check_orphaned();
208                org.apache.xmlbeans.SimpleValue target = null;
209                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(CONTEXTROOT$2, 0);
210                if (target == null)
211                {
212                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(CONTEXTROOT$2);
213                }
214                target.setStringValue(contextRoot);
215            }
216        }
217        
218        /**
219         * Sets (as xml) the "context-root" element
220         */
221        public void xsetContextRoot(org.apache.xmlbeans.XmlString contextRoot)
222        {
223            synchronized (monitor())
224            {
225                check_orphaned();
226                org.apache.xmlbeans.XmlString target = null;
227                target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(CONTEXTROOT$2, 0);
228                if (target == null)
229                {
230                    target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(CONTEXTROOT$2);
231                }
232                target.set(contextRoot);
233            }
234        }
235        
236        /**
237         * Unsets the "context-root" element
238         */
239        public void unsetContextRoot()
240        {
241            synchronized (monitor())
242            {
243                check_orphaned();
244                get_store().remove_element(CONTEXTROOT$2, 0);
245            }
246        }
247        
248        /**
249         * Gets the "work-dir" element
250         */
251        public java.lang.String getWorkDir()
252        {
253            synchronized (monitor())
254            {
255                check_orphaned();
256                org.apache.xmlbeans.SimpleValue target = null;
257                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(WORKDIR$4, 0);
258                if (target == null)
259                {
260                    return null;
261                }
262                return target.getStringValue();
263            }
264        }
265        
266        /**
267         * Gets (as xml) the "work-dir" element
268         */
269        public org.apache.xmlbeans.XmlString xgetWorkDir()
270        {
271            synchronized (monitor())
272            {
273                check_orphaned();
274                org.apache.xmlbeans.XmlString target = null;
275                target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(WORKDIR$4, 0);
276                return target;
277            }
278        }
279        
280        /**
281         * True if has "work-dir" element
282         */
283        public boolean isSetWorkDir()
284        {
285            synchronized (monitor())
286            {
287                check_orphaned();
288                return get_store().count_elements(WORKDIR$4) != 0;
289            }
290        }
291        
292        /**
293         * Sets the "work-dir" element
294         */
295        public void setWorkDir(java.lang.String workDir)
296        {
297            synchronized (monitor())
298            {
299                check_orphaned();
300                org.apache.xmlbeans.SimpleValue target = null;
301                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(WORKDIR$4, 0);
302                if (target == null)
303                {
304                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(WORKDIR$4);
305                }
306                target.setStringValue(workDir);
307            }
308        }
309        
310        /**
311         * Sets (as xml) the "work-dir" element
312         */
313        public void xsetWorkDir(org.apache.xmlbeans.XmlString workDir)
314        {
315            synchronized (monitor())
316            {
317                check_orphaned();
318                org.apache.xmlbeans.XmlString target = null;
319                target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(WORKDIR$4, 0);
320                if (target == null)
321                {
322                    target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(WORKDIR$4);
323                }
324                target.set(workDir);
325            }
326        }
327        
328        /**
329         * Unsets the "work-dir" element
330         */
331        public void unsetWorkDir()
332        {
333            synchronized (monitor())
334            {
335                check_orphaned();
336                get_store().remove_element(WORKDIR$4, 0);
337            }
338        }
339        
340        /**
341         * Gets the "clustering" element
342         */
343        public org.apache.geronimo.xbeans.geronimo.j2ee.GerAbstractClusteringType getClustering()
344        {
345            synchronized (monitor())
346            {
347                check_orphaned();
348                org.apache.geronimo.xbeans.geronimo.j2ee.GerAbstractClusteringType target = null;
349                target = (org.apache.geronimo.xbeans.geronimo.j2ee.GerAbstractClusteringType)get_store().find_element_user(CLUSTERING$6, 0);
350                if (target == null)
351                {
352                    return null;
353                }
354                return target;
355            }
356        }
357        
358        /**
359         * True if has "clustering" element
360         */
361        public boolean isSetClustering()
362        {
363            synchronized (monitor())
364            {
365                check_orphaned();
366                return get_store().count_elements(CLUSTERING$6) != 0;
367            }
368        }
369        
370        /**
371         * Sets the "clustering" element
372         */
373        public void setClustering(org.apache.geronimo.xbeans.geronimo.j2ee.GerAbstractClusteringType clustering)
374        {
375            synchronized (monitor())
376            {
377                check_orphaned();
378                org.apache.geronimo.xbeans.geronimo.j2ee.GerAbstractClusteringType target = null;
379                target = (org.apache.geronimo.xbeans.geronimo.j2ee.GerAbstractClusteringType)get_store().find_element_user(CLUSTERING$6, 0);
380                if (target == null)
381                {
382                    target = (org.apache.geronimo.xbeans.geronimo.j2ee.GerAbstractClusteringType)get_store().add_element_user(CLUSTERING$6);
383                }
384                target.set(clustering);
385            }
386        }
387        
388        /**
389         * Appends and returns a new empty "clustering" element
390         */
391        public org.apache.geronimo.xbeans.geronimo.j2ee.GerAbstractClusteringType addNewClustering()
392        {
393            synchronized (monitor())
394            {
395                check_orphaned();
396                org.apache.geronimo.xbeans.geronimo.j2ee.GerAbstractClusteringType target = null;
397                target = (org.apache.geronimo.xbeans.geronimo.j2ee.GerAbstractClusteringType)get_store().add_element_user(CLUSTERING$6);
398                return target;
399            }
400        }
401        
402        /**
403         * Unsets the "clustering" element
404         */
405        public void unsetClustering()
406        {
407            synchronized (monitor())
408            {
409                check_orphaned();
410                get_store().remove_element(CLUSTERING$6, 0);
411            }
412        }
413        
414        /**
415         * Gets the "web-container" element
416         */
417        public org.apache.geronimo.xbeans.geronimo.naming.GerGbeanLocatorType getWebContainer()
418        {
419            synchronized (monitor())
420            {
421                check_orphaned();
422                org.apache.geronimo.xbeans.geronimo.naming.GerGbeanLocatorType target = null;
423                target = (org.apache.geronimo.xbeans.geronimo.naming.GerGbeanLocatorType)get_store().find_element_user(WEBCONTAINER$8, 0);
424                if (target == null)
425                {
426                    return null;
427                }
428                return target;
429            }
430        }
431        
432        /**
433         * True if has "web-container" element
434         */
435        public boolean isSetWebContainer()
436        {
437            synchronized (monitor())
438            {
439                check_orphaned();
440                return get_store().count_elements(WEBCONTAINER$8) != 0;
441            }
442        }
443        
444        /**
445         * Sets the "web-container" element
446         */
447        public void setWebContainer(org.apache.geronimo.xbeans.geronimo.naming.GerGbeanLocatorType webContainer)
448        {
449            synchronized (monitor())
450            {
451                check_orphaned();
452                org.apache.geronimo.xbeans.geronimo.naming.GerGbeanLocatorType target = null;
453                target = (org.apache.geronimo.xbeans.geronimo.naming.GerGbeanLocatorType)get_store().find_element_user(WEBCONTAINER$8, 0);
454                if (target == null)
455                {
456                    target = (org.apache.geronimo.xbeans.geronimo.naming.GerGbeanLocatorType)get_store().add_element_user(WEBCONTAINER$8);
457                }
458                target.set(webContainer);
459            }
460        }
461        
462        /**
463         * Appends and returns a new empty "web-container" element
464         */
465        public org.apache.geronimo.xbeans.geronimo.naming.GerGbeanLocatorType addNewWebContainer()
466        {
467            synchronized (monitor())
468            {
469                check_orphaned();
470                org.apache.geronimo.xbeans.geronimo.naming.GerGbeanLocatorType target = null;
471                target = (org.apache.geronimo.xbeans.geronimo.naming.GerGbeanLocatorType)get_store().add_element_user(WEBCONTAINER$8);
472                return target;
473            }
474        }
475        
476        /**
477         * Unsets the "web-container" element
478         */
479        public void unsetWebContainer()
480        {
481            synchronized (monitor())
482            {
483                check_orphaned();
484                get_store().remove_element(WEBCONTAINER$8, 0);
485            }
486        }
487        
488        /**
489         * Gets the "host" element
490         */
491        public java.lang.String getHost()
492        {
493            synchronized (monitor())
494            {
495                check_orphaned();
496                org.apache.xmlbeans.SimpleValue target = null;
497                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(HOST$10, 0);
498                if (target == null)
499                {
500                    return null;
501                }
502                return target.getStringValue();
503            }
504        }
505        
506        /**
507         * Gets (as xml) the "host" element
508         */
509        public org.apache.xmlbeans.XmlString xgetHost()
510        {
511            synchronized (monitor())
512            {
513                check_orphaned();
514                org.apache.xmlbeans.XmlString target = null;
515                target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(HOST$10, 0);
516                return target;
517            }
518        }
519        
520        /**
521         * True if has "host" element
522         */
523        public boolean isSetHost()
524        {
525            synchronized (monitor())
526            {
527                check_orphaned();
528                return get_store().count_elements(HOST$10) != 0;
529            }
530        }
531        
532        /**
533         * Sets the "host" element
534         */
535        public void setHost(java.lang.String host)
536        {
537            synchronized (monitor())
538            {
539                check_orphaned();
540                org.apache.xmlbeans.SimpleValue target = null;
541                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(HOST$10, 0);
542                if (target == null)
543                {
544                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(HOST$10);
545                }
546                target.setStringValue(host);
547            }
548        }
549        
550        /**
551         * Sets (as xml) the "host" element
552         */
553        public void xsetHost(org.apache.xmlbeans.XmlString host)
554        {
555            synchronized (monitor())
556            {
557                check_orphaned();
558                org.apache.xmlbeans.XmlString target = null;
559                target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(HOST$10, 0);
560                if (target == null)
561                {
562                    target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(HOST$10);
563                }
564                target.set(host);
565            }
566        }
567        
568        /**
569         * Unsets the "host" element
570         */
571        public void unsetHost()
572        {
573            synchronized (monitor())
574            {
575                check_orphaned();
576                get_store().remove_element(HOST$10, 0);
577            }
578        }
579        
580        /**
581         * Gets the "cross-context" element
582         */
583        public org.apache.geronimo.xbeans.geronimo.web.tomcat.TomcatEmptyType getCrossContext()
584        {
585            synchronized (monitor())
586            {
587                check_orphaned();
588                org.apache.geronimo.xbeans.geronimo.web.tomcat.TomcatEmptyType target = null;
589                target = (org.apache.geronimo.xbeans.geronimo.web.tomcat.TomcatEmptyType)get_store().find_element_user(CROSSCONTEXT$12, 0);
590                if (target == null)
591                {
592                    return null;
593                }
594                return target;
595            }
596        }
597        
598        /**
599         * True if has "cross-context" element
600         */
601        public boolean isSetCrossContext()
602        {
603            synchronized (monitor())
604            {
605                check_orphaned();
606                return get_store().count_elements(CROSSCONTEXT$12) != 0;
607            }
608        }
609        
610        /**
611         * Sets the "cross-context" element
612         */
613        public void setCrossContext(org.apache.geronimo.xbeans.geronimo.web.tomcat.TomcatEmptyType crossContext)
614        {
615            synchronized (monitor())
616            {
617                check_orphaned();
618                org.apache.geronimo.xbeans.geronimo.web.tomcat.TomcatEmptyType target = null;
619                target = (org.apache.geronimo.xbeans.geronimo.web.tomcat.TomcatEmptyType)get_store().find_element_user(CROSSCONTEXT$12, 0);
620                if (target == null)
621                {
622                    target = (org.apache.geronimo.xbeans.geronimo.web.tomcat.TomcatEmptyType)get_store().add_element_user(CROSSCONTEXT$12);
623                }
624                target.set(crossContext);
625            }
626        }
627        
628        /**
629         * Appends and returns a new empty "cross-context" element
630         */
631        public org.apache.geronimo.xbeans.geronimo.web.tomcat.TomcatEmptyType addNewCrossContext()
632        {
633            synchronized (monitor())
634            {
635                check_orphaned();
636                org.apache.geronimo.xbeans.geronimo.web.tomcat.TomcatEmptyType target = null;
637                target = (org.apache.geronimo.xbeans.geronimo.web.tomcat.TomcatEmptyType)get_store().add_element_user(CROSSCONTEXT$12);
638                return target;
639            }
640        }
641        
642        /**
643         * Unsets the "cross-context" element
644         */
645        public void unsetCrossContext()
646        {
647            synchronized (monitor())
648            {
649                check_orphaned();
650                get_store().remove_element(CROSSCONTEXT$12, 0);
651            }
652        }
653        
654        /**
655         * Gets the "disable-cookies" element
656         */
657        public org.apache.geronimo.xbeans.geronimo.web.tomcat.TomcatEmptyType getDisableCookies()
658        {
659            synchronized (monitor())
660            {
661                check_orphaned();
662                org.apache.geronimo.xbeans.geronimo.web.tomcat.TomcatEmptyType target = null;
663                target = (org.apache.geronimo.xbeans.geronimo.web.tomcat.TomcatEmptyType)get_store().find_element_user(DISABLECOOKIES$14, 0);
664                if (target == null)
665                {
666                    return null;
667                }
668                return target;
669            }
670        }
671        
672        /**
673         * True if has "disable-cookies" element
674         */
675        public boolean isSetDisableCookies()
676        {
677            synchronized (monitor())
678            {
679                check_orphaned();
680                return get_store().count_elements(DISABLECOOKIES$14) != 0;
681            }
682        }
683        
684        /**
685         * Sets the "disable-cookies" element
686         */
687        public void setDisableCookies(org.apache.geronimo.xbeans.geronimo.web.tomcat.TomcatEmptyType disableCookies)
688        {
689            synchronized (monitor())
690            {
691                check_orphaned();
692                org.apache.geronimo.xbeans.geronimo.web.tomcat.TomcatEmptyType target = null;
693                target = (org.apache.geronimo.xbeans.geronimo.web.tomcat.TomcatEmptyType)get_store().find_element_user(DISABLECOOKIES$14, 0);
694                if (target == null)
695                {
696                    target = (org.apache.geronimo.xbeans.geronimo.web.tomcat.TomcatEmptyType)get_store().add_element_user(DISABLECOOKIES$14);
697                }
698                target.set(disableCookies);
699            }
700        }
701        
702        /**
703         * Appends and returns a new empty "disable-cookies" element
704         */
705        public org.apache.geronimo.xbeans.geronimo.web.tomcat.TomcatEmptyType addNewDisableCookies()
706        {
707            synchronized (monitor())
708            {
709                check_orphaned();
710                org.apache.geronimo.xbeans.geronimo.web.tomcat.TomcatEmptyType target = null;
711                target = (org.apache.geronimo.xbeans.geronimo.web.tomcat.TomcatEmptyType)get_store().add_element_user(DISABLECOOKIES$14);
712                return target;
713            }
714        }
715        
716        /**
717         * Unsets the "disable-cookies" element
718         */
719        public void unsetDisableCookies()
720        {
721            synchronized (monitor())
722            {
723                check_orphaned();
724                get_store().remove_element(DISABLECOOKIES$14, 0);
725            }
726        }
727        
728        /**
729         * Gets the "valve-chain" element
730         */
731        public java.lang.String getValveChain()
732        {
733            synchronized (monitor())
734            {
735                check_orphaned();
736                org.apache.xmlbeans.SimpleValue target = null;
737                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(VALVECHAIN$16, 0);
738                if (target == null)
739                {
740                    return null;
741                }
742                return target.getStringValue();
743            }
744        }
745        
746        /**
747         * Gets (as xml) the "valve-chain" element
748         */
749        public org.apache.xmlbeans.XmlString xgetValveChain()
750        {
751            synchronized (monitor())
752            {
753                check_orphaned();
754                org.apache.xmlbeans.XmlString target = null;
755                target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(VALVECHAIN$16, 0);
756                return target;
757            }
758        }
759        
760        /**
761         * True if has "valve-chain" element
762         */
763        public boolean isSetValveChain()
764        {
765            synchronized (monitor())
766            {
767                check_orphaned();
768                return get_store().count_elements(VALVECHAIN$16) != 0;
769            }
770        }
771        
772        /**
773         * Sets the "valve-chain" element
774         */
775        public void setValveChain(java.lang.String valveChain)
776        {
777            synchronized (monitor())
778            {
779                check_orphaned();
780                org.apache.xmlbeans.SimpleValue target = null;
781                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(VALVECHAIN$16, 0);
782                if (target == null)
783                {
784                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(VALVECHAIN$16);
785                }
786                target.setStringValue(valveChain);
787            }
788        }
789        
790        /**
791         * Sets (as xml) the "valve-chain" element
792         */
793        public void xsetValveChain(org.apache.xmlbeans.XmlString valveChain)
794        {
795            synchronized (monitor())
796            {
797                check_orphaned();
798                org.apache.xmlbeans.XmlString target = null;
799                target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(VALVECHAIN$16, 0);
800                if (target == null)
801                {
802                    target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(VALVECHAIN$16);
803                }
804                target.set(valveChain);
805            }
806        }
807        
808        /**
809         * Unsets the "valve-chain" element
810         */
811        public void unsetValveChain()
812        {
813            synchronized (monitor())
814            {
815                check_orphaned();
816                get_store().remove_element(VALVECHAIN$16, 0);
817            }
818        }
819        
820        /**
821         * Gets the "listener-chain" element
822         */
823        public java.lang.String getListenerChain()
824        {
825            synchronized (monitor())
826            {
827                check_orphaned();
828                org.apache.xmlbeans.SimpleValue target = null;
829                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(LISTENERCHAIN$18, 0);
830                if (target == null)
831                {
832                    return null;
833                }
834                return target.getStringValue();
835            }
836        }
837        
838        /**
839         * Gets (as xml) the "listener-chain" element
840         */
841        public org.apache.xmlbeans.XmlString xgetListenerChain()
842        {
843            synchronized (monitor())
844            {
845                check_orphaned();
846                org.apache.xmlbeans.XmlString target = null;
847                target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(LISTENERCHAIN$18, 0);
848                return target;
849            }
850        }
851        
852        /**
853         * True if has "listener-chain" element
854         */
855        public boolean isSetListenerChain()
856        {
857            synchronized (monitor())
858            {
859                check_orphaned();
860                return get_store().count_elements(LISTENERCHAIN$18) != 0;
861            }
862        }
863        
864        /**
865         * Sets the "listener-chain" element
866         */
867        public void setListenerChain(java.lang.String listenerChain)
868        {
869            synchronized (monitor())
870            {
871                check_orphaned();
872                org.apache.xmlbeans.SimpleValue target = null;
873                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(LISTENERCHAIN$18, 0);
874                if (target == null)
875                {
876                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(LISTENERCHAIN$18);
877                }
878                target.setStringValue(listenerChain);
879            }
880        }
881        
882        /**
883         * Sets (as xml) the "listener-chain" element
884         */
885        public void xsetListenerChain(org.apache.xmlbeans.XmlString listenerChain)
886        {
887            synchronized (monitor())
888            {
889                check_orphaned();
890                org.apache.xmlbeans.XmlString target = null;
891                target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(LISTENERCHAIN$18, 0);
892                if (target == null)
893                {
894                    target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(LISTENERCHAIN$18);
895                }
896                target.set(listenerChain);
897            }
898        }
899        
900        /**
901         * Unsets the "listener-chain" element
902         */
903        public void unsetListenerChain()
904        {
905            synchronized (monitor())
906            {
907                check_orphaned();
908                get_store().remove_element(LISTENERCHAIN$18, 0);
909            }
910        }
911        
912        /**
913         * Gets the "tomcat-realm" element
914         */
915        public java.lang.String getTomcatRealm()
916        {
917            synchronized (monitor())
918            {
919                check_orphaned();
920                org.apache.xmlbeans.SimpleValue target = null;
921                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(TOMCATREALM$20, 0);
922                if (target == null)
923                {
924                    return null;
925                }
926                return target.getStringValue();
927            }
928        }
929        
930        /**
931         * Gets (as xml) the "tomcat-realm" element
932         */
933        public org.apache.xmlbeans.XmlString xgetTomcatRealm()
934        {
935            synchronized (monitor())
936            {
937                check_orphaned();
938                org.apache.xmlbeans.XmlString target = null;
939                target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(TOMCATREALM$20, 0);
940                return target;
941            }
942        }
943        
944        /**
945         * True if has "tomcat-realm" element
946         */
947        public boolean isSetTomcatRealm()
948        {
949            synchronized (monitor())
950            {
951                check_orphaned();
952                return get_store().count_elements(TOMCATREALM$20) != 0;
953            }
954        }
955        
956        /**
957         * Sets the "tomcat-realm" element
958         */
959        public void setTomcatRealm(java.lang.String tomcatRealm)
960        {
961            synchronized (monitor())
962            {
963                check_orphaned();
964                org.apache.xmlbeans.SimpleValue target = null;
965                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(TOMCATREALM$20, 0);
966                if (target == null)
967                {
968                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(TOMCATREALM$20);
969                }
970                target.setStringValue(tomcatRealm);
971            }
972        }
973        
974        /**
975         * Sets (as xml) the "tomcat-realm" element
976         */
977        public void xsetTomcatRealm(org.apache.xmlbeans.XmlString tomcatRealm)
978        {
979            synchronized (monitor())
980            {
981                check_orphaned();
982                org.apache.xmlbeans.XmlString target = null;
983                target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(TOMCATREALM$20, 0);
984                if (target == null)
985                {
986                    target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(TOMCATREALM$20);
987                }
988                target.set(tomcatRealm);
989            }
990        }
991        
992        /**
993         * Unsets the "tomcat-realm" element
994         */
995        public void unsetTomcatRealm()
996        {
997            synchronized (monitor())
998            {
999                check_orphaned();
1000                get_store().remove_element(TOMCATREALM$20, 0);
1001            }
1002        }
1003        
1004        /**
1005         * Gets the "manager" element
1006         */
1007        public java.lang.String getManager()
1008        {
1009            synchronized (monitor())
1010            {
1011                check_orphaned();
1012                org.apache.xmlbeans.SimpleValue target = null;
1013                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(MANAGER$22, 0);
1014                if (target == null)
1015                {
1016                    return null;
1017                }
1018                return target.getStringValue();
1019            }
1020        }
1021        
1022        /**
1023         * Gets (as xml) the "manager" element
1024         */
1025        public org.apache.xmlbeans.XmlString xgetManager()
1026        {
1027            synchronized (monitor())
1028            {
1029                check_orphaned();
1030                org.apache.xmlbeans.XmlString target = null;
1031                target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(MANAGER$22, 0);
1032                return target;
1033            }
1034        }
1035        
1036        /**
1037         * True if has "manager" element
1038         */
1039        public boolean isSetManager()
1040        {
1041            synchronized (monitor())
1042            {
1043                check_orphaned();
1044                return get_store().count_elements(MANAGER$22) != 0;
1045            }
1046        }
1047        
1048        /**
1049         * Sets the "manager" element
1050         */
1051        public void setManager(java.lang.String manager)
1052        {
1053            synchronized (monitor())
1054            {
1055                check_orphaned();
1056                org.apache.xmlbeans.SimpleValue target = null;
1057                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(MANAGER$22, 0);
1058                if (target == null)
1059                {
1060                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(MANAGER$22);
1061                }
1062                target.setStringValue(manager);
1063            }
1064        }
1065        
1066        /**
1067         * Sets (as xml) the "manager" element
1068         */
1069        public void xsetManager(org.apache.xmlbeans.XmlString manager)
1070        {
1071            synchronized (monitor())
1072            {
1073                check_orphaned();
1074                org.apache.xmlbeans.XmlString target = null;
1075                target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(MANAGER$22, 0);
1076                if (target == null)
1077                {
1078                    target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(MANAGER$22);
1079                }
1080                target.set(manager);
1081            }
1082        }
1083        
1084        /**
1085         * Unsets the "manager" element
1086         */
1087        public void unsetManager()
1088        {
1089            synchronized (monitor())
1090            {
1091                check_orphaned();
1092                get_store().remove_element(MANAGER$22, 0);
1093            }
1094        }
1095        
1096        /**
1097         * Gets the "cluster" element
1098         */
1099        public java.lang.String getCluster()
1100        {
1101            synchronized (monitor())
1102            {
1103                check_orphaned();
1104                org.apache.xmlbeans.SimpleValue target = null;
1105                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(CLUSTER$24, 0);
1106                if (target == null)
1107                {
1108                    return null;
1109                }
1110                return target.getStringValue();
1111            }
1112        }
1113        
1114        /**
1115         * Gets (as xml) the "cluster" element
1116         */
1117        public org.apache.xmlbeans.XmlString xgetCluster()
1118        {
1119            synchronized (monitor())
1120            {
1121                check_orphaned();
1122                org.apache.xmlbeans.XmlString target = null;
1123                target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(CLUSTER$24, 0);
1124                return target;
1125            }
1126        }
1127        
1128        /**
1129         * True if has "cluster" element
1130         */
1131        public boolean isSetCluster()
1132        {
1133            synchronized (monitor())
1134            {
1135                check_orphaned();
1136                return get_store().count_elements(CLUSTER$24) != 0;
1137            }
1138        }
1139        
1140        /**
1141         * Sets the "cluster" element
1142         */
1143        public void setCluster(java.lang.String cluster)
1144        {
1145            synchronized (monitor())
1146            {
1147                check_orphaned();
1148                org.apache.xmlbeans.SimpleValue target = null;
1149                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(CLUSTER$24, 0);
1150                if (target == null)
1151                {
1152                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(CLUSTER$24);
1153                }
1154                target.setStringValue(cluster);
1155            }
1156        }
1157        
1158        /**
1159         * Sets (as xml) the "cluster" element
1160         */
1161        public void xsetCluster(org.apache.xmlbeans.XmlString cluster)
1162        {
1163            synchronized (monitor())
1164            {
1165                check_orphaned();
1166                org.apache.xmlbeans.XmlString target = null;
1167                target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(CLUSTER$24, 0);
1168                if (target == null)
1169                {
1170                    target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(CLUSTER$24);
1171                }
1172                target.set(cluster);
1173            }
1174        }
1175        
1176        /**
1177         * Unsets the "cluster" element
1178         */
1179        public void unsetCluster()
1180        {
1181            synchronized (monitor())
1182            {
1183                check_orphaned();
1184                get_store().remove_element(CLUSTER$24, 0);
1185            }
1186        }
1187        
1188        /**
1189         * Gets array of all "abstract-naming-entry" elements
1190         */
1191        public org.apache.geronimo.xbeans.geronimo.naming.GerAbstractNamingEntryType[] getAbstractNamingEntryArray()
1192        {
1193            synchronized (monitor())
1194            {
1195                check_orphaned();
1196                java.util.List targetList = new java.util.ArrayList();
1197                get_store().find_all_element_users(ABSTRACTNAMINGENTRY$27, targetList);
1198                org.apache.geronimo.xbeans.geronimo.naming.GerAbstractNamingEntryType[] result = new org.apache.geronimo.xbeans.geronimo.naming.GerAbstractNamingEntryType[targetList.size()];
1199                targetList.toArray(result);
1200                return result;
1201            }
1202        }
1203        
1204        /**
1205         * Gets ith "abstract-naming-entry" element
1206         */
1207        public org.apache.geronimo.xbeans.geronimo.naming.GerAbstractNamingEntryType getAbstractNamingEntryArray(int i)
1208        {
1209            synchronized (monitor())
1210            {
1211                check_orphaned();
1212                org.apache.geronimo.xbeans.geronimo.naming.GerAbstractNamingEntryType target = null;
1213                target = (org.apache.geronimo.xbeans.geronimo.naming.GerAbstractNamingEntryType)get_store().find_element_user(ABSTRACTNAMINGENTRY$27, i);
1214                if (target == null)
1215                {
1216                    throw new IndexOutOfBoundsException();
1217                }
1218                return target;
1219            }
1220        }
1221        
1222        /**
1223         * Returns number of "abstract-naming-entry" element
1224         */
1225        public int sizeOfAbstractNamingEntryArray()
1226        {
1227            synchronized (monitor())
1228            {
1229                check_orphaned();
1230                return get_store().count_elements(ABSTRACTNAMINGENTRY$27);
1231            }
1232        }
1233        
1234        /**
1235         * Sets array of all "abstract-naming-entry" element
1236         */
1237        public void setAbstractNamingEntryArray(org.apache.geronimo.xbeans.geronimo.naming.GerAbstractNamingEntryType[] abstractNamingEntryArray)
1238        {
1239            synchronized (monitor())
1240            {
1241                check_orphaned();
1242                arraySetterHelper(abstractNamingEntryArray, ABSTRACTNAMINGENTRY$26, ABSTRACTNAMINGENTRY$27);
1243            }
1244        }
1245        
1246        /**
1247         * Sets ith "abstract-naming-entry" element
1248         */
1249        public void setAbstractNamingEntryArray(int i, org.apache.geronimo.xbeans.geronimo.naming.GerAbstractNamingEntryType abstractNamingEntry)
1250        {
1251            synchronized (monitor())
1252            {
1253                check_orphaned();
1254                org.apache.geronimo.xbeans.geronimo.naming.GerAbstractNamingEntryType target = null;
1255                target = (org.apache.geronimo.xbeans.geronimo.naming.GerAbstractNamingEntryType)get_store().find_element_user(ABSTRACTNAMINGENTRY$27, i);
1256                if (target == null)
1257                {
1258                    throw new IndexOutOfBoundsException();
1259                }
1260                target.set(abstractNamingEntry);
1261            }
1262        }
1263        
1264        /**
1265         * Inserts and returns a new empty value (as xml) as the ith "abstract-naming-entry" element
1266         */
1267        public org.apache.geronimo.xbeans.geronimo.naming.GerAbstractNamingEntryType insertNewAbstractNamingEntry(int i)
1268        {
1269            synchronized (monitor())
1270            {
1271                check_orphaned();
1272                org.apache.geronimo.xbeans.geronimo.naming.GerAbstractNamingEntryType target = null;
1273                target = (org.apache.geronimo.xbeans.geronimo.naming.GerAbstractNamingEntryType)get_store().insert_element_user(ABSTRACTNAMINGENTRY$27, ABSTRACTNAMINGENTRY$26, i);
1274                return target;
1275            }
1276        }
1277        
1278        /**
1279         * Appends and returns a new empty value (as xml) as the last "abstract-naming-entry" element
1280         */
1281        public org.apache.geronimo.xbeans.geronimo.naming.GerAbstractNamingEntryType addNewAbstractNamingEntry()
1282        {
1283            synchronized (monitor())
1284            {
1285                check_orphaned();
1286                org.apache.geronimo.xbeans.geronimo.naming.GerAbstractNamingEntryType target = null;
1287                target = (org.apache.geronimo.xbeans.geronimo.naming.GerAbstractNamingEntryType)get_store().add_element_user(ABSTRACTNAMINGENTRY$26);
1288                return target;
1289            }
1290        }
1291        
1292        /**
1293         * Removes the ith "abstract-naming-entry" element
1294         */
1295        public void removeAbstractNamingEntry(int i)
1296        {
1297            synchronized (monitor())
1298            {
1299                check_orphaned();
1300                get_store().remove_element(ABSTRACTNAMINGENTRY$27, i);
1301            }
1302        }
1303        
1304        /**
1305         * Gets array of all "ejb-ref" elements
1306         */
1307        public org.apache.geronimo.xbeans.geronimo.naming.GerEjbRefType[] getEjbRefArray()
1308        {
1309            synchronized (monitor())
1310            {
1311                check_orphaned();
1312                java.util.List targetList = new java.util.ArrayList();
1313                get_store().find_all_element_users(EJBREF$28, targetList);
1314                org.apache.geronimo.xbeans.geronimo.naming.GerEjbRefType[] result = new org.apache.geronimo.xbeans.geronimo.naming.GerEjbRefType[targetList.size()];
1315                targetList.toArray(result);
1316                return result;
1317            }
1318        }
1319        
1320        /**
1321         * Gets ith "ejb-ref" element
1322         */
1323        public org.apache.geronimo.xbeans.geronimo.naming.GerEjbRefType getEjbRefArray(int i)
1324        {
1325            synchronized (monitor())
1326            {
1327                check_orphaned();
1328                org.apache.geronimo.xbeans.geronimo.naming.GerEjbRefType target = null;
1329                target = (org.apache.geronimo.xbeans.geronimo.naming.GerEjbRefType)get_store().find_element_user(EJBREF$28, i);
1330                if (target == null)
1331                {
1332                    throw new IndexOutOfBoundsException();
1333                }
1334                return target;
1335            }
1336        }
1337        
1338        /**
1339         * Returns number of "ejb-ref" element
1340         */
1341        public int sizeOfEjbRefArray()
1342        {
1343            synchronized (monitor())
1344            {
1345                check_orphaned();
1346                return get_store().count_elements(EJBREF$28);
1347            }
1348        }
1349        
1350        /**
1351         * Sets array of all "ejb-ref" element
1352         */
1353        public void setEjbRefArray(org.apache.geronimo.xbeans.geronimo.naming.GerEjbRefType[] ejbRefArray)
1354        {
1355            synchronized (monitor())
1356            {
1357                check_orphaned();
1358                arraySetterHelper(ejbRefArray, EJBREF$28);
1359            }
1360        }
1361        
1362        /**
1363         * Sets ith "ejb-ref" element
1364         */
1365        public void setEjbRefArray(int i, org.apache.geronimo.xbeans.geronimo.naming.GerEjbRefType ejbRef)
1366        {
1367            synchronized (monitor())
1368            {
1369                check_orphaned();
1370                org.apache.geronimo.xbeans.geronimo.naming.GerEjbRefType target = null;
1371                target = (org.apache.geronimo.xbeans.geronimo.naming.GerEjbRefType)get_store().find_element_user(EJBREF$28, i);
1372                if (target == null)
1373                {
1374                    throw new IndexOutOfBoundsException();
1375                }
1376                target.set(ejbRef);
1377            }
1378        }
1379        
1380        /**
1381         * Inserts and returns a new empty value (as xml) as the ith "ejb-ref" element
1382         */
1383        public org.apache.geronimo.xbeans.geronimo.naming.GerEjbRefType insertNewEjbRef(int i)
1384        {
1385            synchronized (monitor())
1386            {
1387                check_orphaned();
1388                org.apache.geronimo.xbeans.geronimo.naming.GerEjbRefType target = null;
1389                target = (org.apache.geronimo.xbeans.geronimo.naming.GerEjbRefType)get_store().insert_element_user(EJBREF$28, i);
1390                return target;
1391            }
1392        }
1393        
1394        /**
1395         * Appends and returns a new empty value (as xml) as the last "ejb-ref" element
1396         */
1397        public org.apache.geronimo.xbeans.geronimo.naming.GerEjbRefType addNewEjbRef()
1398        {
1399            synchronized (monitor())
1400            {
1401                check_orphaned();
1402                org.apache.geronimo.xbeans.geronimo.naming.GerEjbRefType target = null;
1403                target = (org.apache.geronimo.xbeans.geronimo.naming.GerEjbRefType)get_store().add_element_user(EJBREF$28);
1404                return target;
1405            }
1406        }
1407        
1408        /**
1409         * Removes the ith "ejb-ref" element
1410         */
1411        public void removeEjbRef(int i)
1412        {
1413            synchronized (monitor())
1414            {
1415                check_orphaned();
1416                get_store().remove_element(EJBREF$28, i);
1417            }
1418        }
1419        
1420        /**
1421         * Gets array of all "ejb-local-ref" elements
1422         */
1423        public org.apache.geronimo.xbeans.geronimo.naming.GerEjbLocalRefType[] getEjbLocalRefArray()
1424        {
1425            synchronized (monitor())
1426            {
1427                check_orphaned();
1428                java.util.List targetList = new java.util.ArrayList();
1429                get_store().find_all_element_users(EJBLOCALREF$30, targetList);
1430                org.apache.geronimo.xbeans.geronimo.naming.GerEjbLocalRefType[] result = new org.apache.geronimo.xbeans.geronimo.naming.GerEjbLocalRefType[targetList.size()];
1431                targetList.toArray(result);
1432                return result;
1433            }
1434        }
1435        
1436        /**
1437         * Gets ith "ejb-local-ref" element
1438         */
1439        public org.apache.geronimo.xbeans.geronimo.naming.GerEjbLocalRefType getEjbLocalRefArray(int i)
1440        {
1441            synchronized (monitor())
1442            {
1443                check_orphaned();
1444                org.apache.geronimo.xbeans.geronimo.naming.GerEjbLocalRefType target = null;
1445                target = (org.apache.geronimo.xbeans.geronimo.naming.GerEjbLocalRefType)get_store().find_element_user(EJBLOCALREF$30, i);
1446                if (target == null)
1447                {
1448                    throw new IndexOutOfBoundsException();
1449                }
1450                return target;
1451            }
1452        }
1453        
1454        /**
1455         * Returns number of "ejb-local-ref" element
1456         */
1457        public int sizeOfEjbLocalRefArray()
1458        {
1459            synchronized (monitor())
1460            {
1461                check_orphaned();
1462                return get_store().count_elements(EJBLOCALREF$30);
1463            }
1464        }
1465        
1466        /**
1467         * Sets array of all "ejb-local-ref" element
1468         */
1469        public void setEjbLocalRefArray(org.apache.geronimo.xbeans.geronimo.naming.GerEjbLocalRefType[] ejbLocalRefArray)
1470        {
1471            synchronized (monitor())
1472            {
1473                check_orphaned();
1474                arraySetterHelper(ejbLocalRefArray, EJBLOCALREF$30);
1475            }
1476        }
1477        
1478        /**
1479         * Sets ith "ejb-local-ref" element
1480         */
1481        public void setEjbLocalRefArray(int i, org.apache.geronimo.xbeans.geronimo.naming.GerEjbLocalRefType ejbLocalRef)
1482        {
1483            synchronized (monitor())
1484            {
1485                check_orphaned();
1486                org.apache.geronimo.xbeans.geronimo.naming.GerEjbLocalRefType target = null;
1487                target = (org.apache.geronimo.xbeans.geronimo.naming.GerEjbLocalRefType)get_store().find_element_user(EJBLOCALREF$30, i);
1488                if (target == null)
1489                {
1490                    throw new IndexOutOfBoundsException();
1491                }
1492                target.set(ejbLocalRef);
1493            }
1494        }
1495        
1496        /**
1497         * Inserts and returns a new empty value (as xml) as the ith "ejb-local-ref" element
1498         */
1499        public org.apache.geronimo.xbeans.geronimo.naming.GerEjbLocalRefType insertNewEjbLocalRef(int i)
1500        {
1501            synchronized (monitor())
1502            {
1503                check_orphaned();
1504                org.apache.geronimo.xbeans.geronimo.naming.GerEjbLocalRefType target = null;
1505                target = (org.apache.geronimo.xbeans.geronimo.naming.GerEjbLocalRefType)get_store().insert_element_user(EJBLOCALREF$30, i);
1506                return target;
1507            }
1508        }
1509        
1510        /**
1511         * Appends and returns a new empty value (as xml) as the last "ejb-local-ref" element
1512         */
1513        public org.apache.geronimo.xbeans.geronimo.naming.GerEjbLocalRefType addNewEjbLocalRef()
1514        {
1515            synchronized (monitor())
1516            {
1517                check_orphaned();
1518                org.apache.geronimo.xbeans.geronimo.naming.GerEjbLocalRefType target = null;
1519                target = (org.apache.geronimo.xbeans.geronimo.naming.GerEjbLocalRefType)get_store().add_element_user(EJBLOCALREF$30);
1520                return target;
1521            }
1522        }
1523        
1524        /**
1525         * Removes the ith "ejb-local-ref" element
1526         */
1527        public void removeEjbLocalRef(int i)
1528        {
1529            synchronized (monitor())
1530            {
1531                check_orphaned();
1532                get_store().remove_element(EJBLOCALREF$30, i);
1533            }
1534        }
1535        
1536        /**
1537         * Gets array of all "service-ref" elements
1538         */
1539        public org.apache.geronimo.xbeans.geronimo.naming.GerServiceRefType[] getServiceRefArray()
1540        {
1541            synchronized (monitor())
1542            {
1543                check_orphaned();
1544                java.util.List targetList = new java.util.ArrayList();
1545                get_store().find_all_element_users(SERVICEREF$32, targetList);
1546                org.apache.geronimo.xbeans.geronimo.naming.GerServiceRefType[] result = new org.apache.geronimo.xbeans.geronimo.naming.GerServiceRefType[targetList.size()];
1547                targetList.toArray(result);
1548                return result;
1549            }
1550        }
1551        
1552        /**
1553         * Gets ith "service-ref" element
1554         */
1555        public org.apache.geronimo.xbeans.geronimo.naming.GerServiceRefType getServiceRefArray(int i)
1556        {
1557            synchronized (monitor())
1558            {
1559                check_orphaned();
1560                org.apache.geronimo.xbeans.geronimo.naming.GerServiceRefType target = null;
1561                target = (org.apache.geronimo.xbeans.geronimo.naming.GerServiceRefType)get_store().find_element_user(SERVICEREF$32, i);
1562                if (target == null)
1563                {
1564                    throw new IndexOutOfBoundsException();
1565                }
1566                return target;
1567            }
1568        }
1569        
1570        /**
1571         * Returns number of "service-ref" element
1572         */
1573        public int sizeOfServiceRefArray()
1574        {
1575            synchronized (monitor())
1576            {
1577                check_orphaned();
1578                return get_store().count_elements(SERVICEREF$32);
1579            }
1580        }
1581        
1582        /**
1583         * Sets array of all "service-ref" element
1584         */
1585        public void setServiceRefArray(org.apache.geronimo.xbeans.geronimo.naming.GerServiceRefType[] serviceRefArray)
1586        {
1587            synchronized (monitor())
1588            {
1589                check_orphaned();
1590                arraySetterHelper(serviceRefArray, SERVICEREF$32);
1591            }
1592        }
1593        
1594        /**
1595         * Sets ith "service-ref" element
1596         */
1597        public void setServiceRefArray(int i, org.apache.geronimo.xbeans.geronimo.naming.GerServiceRefType serviceRef)
1598        {
1599            synchronized (monitor())
1600            {
1601                check_orphaned();
1602                org.apache.geronimo.xbeans.geronimo.naming.GerServiceRefType target = null;
1603                target = (org.apache.geronimo.xbeans.geronimo.naming.GerServiceRefType)get_store().find_element_user(SERVICEREF$32, i);
1604                if (target == null)
1605                {
1606                    throw new IndexOutOfBoundsException();
1607                }
1608                target.set(serviceRef);
1609            }
1610        }
1611        
1612        /**
1613         * Inserts and returns a new empty value (as xml) as the ith "service-ref" element
1614         */
1615        public org.apache.geronimo.xbeans.geronimo.naming.GerServiceRefType insertNewServiceRef(int i)
1616        {
1617            synchronized (monitor())
1618            {
1619                check_orphaned();
1620                org.apache.geronimo.xbeans.geronimo.naming.GerServiceRefType target = null;
1621                target = (org.apache.geronimo.xbeans.geronimo.naming.GerServiceRefType)get_store().insert_element_user(SERVICEREF$32, i);
1622                return target;
1623            }
1624        }
1625        
1626        /**
1627         * Appends and returns a new empty value (as xml) as the last "service-ref" element
1628         */
1629        public org.apache.geronimo.xbeans.geronimo.naming.GerServiceRefType addNewServiceRef()
1630        {
1631            synchronized (monitor())
1632            {
1633                check_orphaned();
1634                org.apache.geronimo.xbeans.geronimo.naming.GerServiceRefType target = null;
1635                target = (org.apache.geronimo.xbeans.geronimo.naming.GerServiceRefType)get_store().add_element_user(SERVICEREF$32);
1636                return target;
1637            }
1638        }
1639        
1640        /**
1641         * Removes the ith "service-ref" element
1642         */
1643        public void removeServiceRef(int i)
1644        {
1645            synchronized (monitor())
1646            {
1647                check_orphaned();
1648                get_store().remove_element(SERVICEREF$32, i);
1649            }
1650        }
1651        
1652        /**
1653         * Gets array of all "resource-ref" elements
1654         */
1655        public org.apache.geronimo.xbeans.geronimo.naming.GerResourceRefType[] getResourceRefArray()
1656        {
1657            synchronized (monitor())
1658            {
1659                check_orphaned();
1660                java.util.List targetList = new java.util.ArrayList();
1661                get_store().find_all_element_users(RESOURCEREF$34, targetList);
1662                org.apache.geronimo.xbeans.geronimo.naming.GerResourceRefType[] result = new org.apache.geronimo.xbeans.geronimo.naming.GerResourceRefType[targetList.size()];
1663                targetList.toArray(result);
1664                return result;
1665            }
1666        }
1667        
1668        /**
1669         * Gets ith "resource-ref" element
1670         */
1671        public org.apache.geronimo.xbeans.geronimo.naming.GerResourceRefType getResourceRefArray(int i)
1672        {
1673            synchronized (monitor())
1674            {
1675                check_orphaned();
1676                org.apache.geronimo.xbeans.geronimo.naming.GerResourceRefType target = null;
1677                target = (org.apache.geronimo.xbeans.geronimo.naming.GerResourceRefType)get_store().find_element_user(RESOURCEREF$34, i);
1678                if (target == null)
1679                {
1680                    throw new IndexOutOfBoundsException();
1681                }
1682                return target;
1683            }
1684        }
1685        
1686        /**
1687         * Returns number of "resource-ref" element
1688         */
1689        public int sizeOfResourceRefArray()
1690        {
1691            synchronized (monitor())
1692            {
1693                check_orphaned();
1694                return get_store().count_elements(RESOURCEREF$34);
1695            }
1696        }
1697        
1698        /**
1699         * Sets array of all "resource-ref" element
1700         */
1701        public void setResourceRefArray(org.apache.geronimo.xbeans.geronimo.naming.GerResourceRefType[] resourceRefArray)
1702        {
1703            synchronized (monitor())
1704            {
1705                check_orphaned();
1706                arraySetterHelper(resourceRefArray, RESOURCEREF$34);
1707            }
1708        }
1709        
1710        /**
1711         * Sets ith "resource-ref" element
1712         */
1713        public void setResourceRefArray(int i, org.apache.geronimo.xbeans.geronimo.naming.GerResourceRefType resourceRef)
1714        {
1715            synchronized (monitor())
1716            {
1717                check_orphaned();
1718                org.apache.geronimo.xbeans.geronimo.naming.GerResourceRefType target = null;
1719                target = (org.apache.geronimo.xbeans.geronimo.naming.GerResourceRefType)get_store().find_element_user(RESOURCEREF$34, i);
1720                if (target == null)
1721                {
1722                    throw new IndexOutOfBoundsException();
1723                }
1724                target.set(resourceRef);
1725            }
1726        }
1727        
1728        /**
1729         * Inserts and returns a new empty value (as xml) as the ith "resource-ref" element
1730         */
1731        public org.apache.geronimo.xbeans.geronimo.naming.GerResourceRefType insertNewResourceRef(int i)
1732        {
1733            synchronized (monitor())
1734            {
1735                check_orphaned();
1736                org.apache.geronimo.xbeans.geronimo.naming.GerResourceRefType target = null;
1737                target = (org.apache.geronimo.xbeans.geronimo.naming.GerResourceRefType)get_store().insert_element_user(RESOURCEREF$34, i);
1738                return target;
1739            }
1740        }
1741        
1742        /**
1743         * Appends and returns a new empty value (as xml) as the last "resource-ref" element
1744         */
1745        public org.apache.geronimo.xbeans.geronimo.naming.GerResourceRefType addNewResourceRef()
1746        {
1747            synchronized (monitor())
1748            {
1749                check_orphaned();
1750                org.apache.geronimo.xbeans.geronimo.naming.GerResourceRefType target = null;
1751                target = (org.apache.geronimo.xbeans.geronimo.naming.GerResourceRefType)get_store().add_element_user(RESOURCEREF$34);
1752                return target;
1753            }
1754        }
1755        
1756        /**
1757         * Removes the ith "resource-ref" element
1758         */
1759        public void removeResourceRef(int i)
1760        {
1761            synchronized (monitor())
1762            {
1763                check_orphaned();
1764                get_store().remove_element(RESOURCEREF$34, i);
1765            }
1766        }
1767        
1768        /**
1769         * Gets array of all "resource-env-ref" elements
1770         */
1771        public org.apache.geronimo.xbeans.geronimo.naming.GerResourceEnvRefType[] getResourceEnvRefArray()
1772        {
1773            synchronized (monitor())
1774            {
1775                check_orphaned();
1776                java.util.List targetList = new java.util.ArrayList();
1777                get_store().find_all_element_users(RESOURCEENVREF$36, targetList);
1778                org.apache.geronimo.xbeans.geronimo.naming.GerResourceEnvRefType[] result = new org.apache.geronimo.xbeans.geronimo.naming.GerResourceEnvRefType[targetList.size()];
1779                targetList.toArray(result);
1780                return result;
1781            }
1782        }
1783        
1784        /**
1785         * Gets ith "resource-env-ref" element
1786         */
1787        public org.apache.geronimo.xbeans.geronimo.naming.GerResourceEnvRefType getResourceEnvRefArray(int i)
1788        {
1789            synchronized (monitor())
1790            {
1791                check_orphaned();
1792                org.apache.geronimo.xbeans.geronimo.naming.GerResourceEnvRefType target = null;
1793                target = (org.apache.geronimo.xbeans.geronimo.naming.GerResourceEnvRefType)get_store().find_element_user(RESOURCEENVREF$36, i);
1794                if (target == null)
1795                {
1796                    throw new IndexOutOfBoundsException();
1797                }
1798                return target;
1799            }
1800        }
1801        
1802        /**
1803         * Returns number of "resource-env-ref" element
1804         */
1805        public int sizeOfResourceEnvRefArray()
1806        {
1807            synchronized (monitor())
1808            {
1809                check_orphaned();
1810                return get_store().count_elements(RESOURCEENVREF$36);
1811            }
1812        }
1813        
1814        /**
1815         * Sets array of all "resource-env-ref" element
1816         */
1817        public void setResourceEnvRefArray(org.apache.geronimo.xbeans.geronimo.naming.GerResourceEnvRefType[] resourceEnvRefArray)
1818        {
1819            synchronized (monitor())
1820            {
1821                check_orphaned();
1822                arraySetterHelper(resourceEnvRefArray, RESOURCEENVREF$36);
1823            }
1824        }
1825        
1826        /**
1827         * Sets ith "resource-env-ref" element
1828         */
1829        public void setResourceEnvRefArray(int i, org.apache.geronimo.xbeans.geronimo.naming.GerResourceEnvRefType resourceEnvRef)
1830        {
1831            synchronized (monitor())
1832            {
1833                check_orphaned();
1834                org.apache.geronimo.xbeans.geronimo.naming.GerResourceEnvRefType target = null;
1835                target = (org.apache.geronimo.xbeans.geronimo.naming.GerResourceEnvRefType)get_store().find_element_user(RESOURCEENVREF$36, i);
1836                if (target == null)
1837                {
1838                    throw new IndexOutOfBoundsException();
1839                }
1840                target.set(resourceEnvRef);
1841            }
1842        }
1843        
1844        /**
1845         * Inserts and returns a new empty value (as xml) as the ith "resource-env-ref" element
1846         */
1847        public org.apache.geronimo.xbeans.geronimo.naming.GerResourceEnvRefType insertNewResourceEnvRef(int i)
1848        {
1849            synchronized (monitor())
1850            {
1851                check_orphaned();
1852                org.apache.geronimo.xbeans.geronimo.naming.GerResourceEnvRefType target = null;
1853                target = (org.apache.geronimo.xbeans.geronimo.naming.GerResourceEnvRefType)get_store().insert_element_user(RESOURCEENVREF$36, i);
1854                return target;
1855            }
1856        }
1857        
1858        /**
1859         * Appends and returns a new empty value (as xml) as the last "resource-env-ref" element
1860         */
1861        public org.apache.geronimo.xbeans.geronimo.naming.GerResourceEnvRefType addNewResourceEnvRef()
1862        {
1863            synchronized (monitor())
1864            {
1865                check_orphaned();
1866                org.apache.geronimo.xbeans.geronimo.naming.GerResourceEnvRefType target = null;
1867                target = (org.apache.geronimo.xbeans.geronimo.naming.GerResourceEnvRefType)get_store().add_element_user(RESOURCEENVREF$36);
1868                return target;
1869            }
1870        }
1871        
1872        /**
1873         * Removes the ith "resource-env-ref" element
1874         */
1875        public void removeResourceEnvRef(int i)
1876        {
1877            synchronized (monitor())
1878            {
1879                check_orphaned();
1880                get_store().remove_element(RESOURCEENVREF$36, i);
1881            }
1882        }
1883        
1884        /**
1885         * Gets array of all "message-destination" elements
1886         */
1887        public org.apache.geronimo.xbeans.geronimo.naming.GerMessageDestinationType[] getMessageDestinationArray()
1888        {
1889            synchronized (monitor())
1890            {
1891                check_orphaned();
1892                java.util.List targetList = new java.util.ArrayList();
1893                get_store().find_all_element_users(MESSAGEDESTINATION$38, targetList);
1894                org.apache.geronimo.xbeans.geronimo.naming.GerMessageDestinationType[] result = new org.apache.geronimo.xbeans.geronimo.naming.GerMessageDestinationType[targetList.size()];
1895                targetList.toArray(result);
1896                return result;
1897            }
1898        }
1899        
1900        /**
1901         * Gets ith "message-destination" element
1902         */
1903        public org.apache.geronimo.xbeans.geronimo.naming.GerMessageDestinationType getMessageDestinationArray(int i)
1904        {
1905            synchronized (monitor())
1906            {
1907                check_orphaned();
1908                org.apache.geronimo.xbeans.geronimo.naming.GerMessageDestinationType target = null;
1909                target = (org.apache.geronimo.xbeans.geronimo.naming.GerMessageDestinationType)get_store().find_element_user(MESSAGEDESTINATION$38, i);
1910                if (target == null)
1911                {
1912                    throw new IndexOutOfBoundsException();
1913                }
1914                return target;
1915            }
1916        }
1917        
1918        /**
1919         * Returns number of "message-destination" element
1920         */
1921        public int sizeOfMessageDestinationArray()
1922        {
1923            synchronized (monitor())
1924            {
1925                check_orphaned();
1926                return get_store().count_elements(MESSAGEDESTINATION$38);
1927            }
1928        }
1929        
1930        /**
1931         * Sets array of all "message-destination" element
1932         */
1933        public void setMessageDestinationArray(org.apache.geronimo.xbeans.geronimo.naming.GerMessageDestinationType[] messageDestinationArray)
1934        {
1935            synchronized (monitor())
1936            {
1937                check_orphaned();
1938                arraySetterHelper(messageDestinationArray, MESSAGEDESTINATION$38);
1939            }
1940        }
1941        
1942        /**
1943         * Sets ith "message-destination" element
1944         */
1945        public void setMessageDestinationArray(int i, org.apache.geronimo.xbeans.geronimo.naming.GerMessageDestinationType messageDestination)
1946        {
1947            synchronized (monitor())
1948            {
1949                check_orphaned();
1950                org.apache.geronimo.xbeans.geronimo.naming.GerMessageDestinationType target = null;
1951                target = (org.apache.geronimo.xbeans.geronimo.naming.GerMessageDestinationType)get_store().find_element_user(MESSAGEDESTINATION$38, i);
1952                if (target == null)
1953                {
1954                    throw new IndexOutOfBoundsException();
1955                }
1956                target.set(messageDestination);
1957            }
1958        }
1959        
1960        /**
1961         * Inserts and returns a new empty value (as xml) as the ith "message-destination" element
1962         */
1963        public org.apache.geronimo.xbeans.geronimo.naming.GerMessageDestinationType insertNewMessageDestination(int i)
1964        {
1965            synchronized (monitor())
1966            {
1967                check_orphaned();
1968                org.apache.geronimo.xbeans.geronimo.naming.GerMessageDestinationType target = null;
1969                target = (org.apache.geronimo.xbeans.geronimo.naming.GerMessageDestinationType)get_store().insert_element_user(MESSAGEDESTINATION$38, i);
1970                return target;
1971            }
1972        }
1973        
1974        /**
1975         * Appends and returns a new empty value (as xml) as the last "message-destination" element
1976         */
1977        public org.apache.geronimo.xbeans.geronimo.naming.GerMessageDestinationType addNewMessageDestination()
1978        {
1979            synchronized (monitor())
1980            {
1981                check_orphaned();
1982                org.apache.geronimo.xbeans.geronimo.naming.GerMessageDestinationType target = null;
1983                target = (org.apache.geronimo.xbeans.geronimo.naming.GerMessageDestinationType)get_store().add_element_user(MESSAGEDESTINATION$38);
1984                return target;
1985            }
1986        }
1987        
1988        /**
1989         * Removes the ith "message-destination" element
1990         */
1991        public void removeMessageDestination(int i)
1992        {
1993            synchronized (monitor())
1994            {
1995                check_orphaned();
1996                get_store().remove_element(MESSAGEDESTINATION$38, i);
1997            }
1998        }
1999        
2000        /**
2001         * Gets the "security-realm-name" element
2002         */
2003        public java.lang.String getSecurityRealmName()
2004        {
2005            synchronized (monitor())
2006            {
2007                check_orphaned();
2008                org.apache.xmlbeans.SimpleValue target = null;
2009                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(SECURITYREALMNAME$40, 0);
2010                if (target == null)
2011                {
2012                    return null;
2013                }
2014                return target.getStringValue();
2015            }
2016        }
2017        
2018        /**
2019         * Gets (as xml) the "security-realm-name" element
2020         */
2021        public org.apache.xmlbeans.XmlString xgetSecurityRealmName()
2022        {
2023            synchronized (monitor())
2024            {
2025                check_orphaned();
2026                org.apache.xmlbeans.XmlString target = null;
2027                target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(SECURITYREALMNAME$40, 0);
2028                return target;
2029            }
2030        }
2031        
2032        /**
2033         * True if has "security-realm-name" element
2034         */
2035        public boolean isSetSecurityRealmName()
2036        {
2037            synchronized (monitor())
2038            {
2039                check_orphaned();
2040                return get_store().count_elements(SECURITYREALMNAME$40) != 0;
2041            }
2042        }
2043        
2044        /**
2045         * Sets the "security-realm-name" element
2046         */
2047        public void setSecurityRealmName(java.lang.String securityRealmName)
2048        {
2049            synchronized (monitor())
2050            {
2051                check_orphaned();
2052                org.apache.xmlbeans.SimpleValue target = null;
2053                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(SECURITYREALMNAME$40, 0);
2054                if (target == null)
2055                {
2056                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(SECURITYREALMNAME$40);
2057                }
2058                target.setStringValue(securityRealmName);
2059            }
2060        }
2061        
2062        /**
2063         * Sets (as xml) the "security-realm-name" element
2064         */
2065        public void xsetSecurityRealmName(org.apache.xmlbeans.XmlString securityRealmName)
2066        {
2067            synchronized (monitor())
2068            {
2069                check_orphaned();
2070                org.apache.xmlbeans.XmlString target = null;
2071                target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(SECURITYREALMNAME$40, 0);
2072                if (target == null)
2073                {
2074                    target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(SECURITYREALMNAME$40);
2075                }
2076                target.set(securityRealmName);
2077            }
2078        }
2079        
2080        /**
2081         * Unsets the "security-realm-name" element
2082         */
2083        public void unsetSecurityRealmName()
2084        {
2085            synchronized (monitor())
2086            {
2087                check_orphaned();
2088                get_store().remove_element(SECURITYREALMNAME$40, 0);
2089            }
2090        }
2091        
2092        /**
2093         * Gets the "security" element
2094         */
2095        public org.apache.geronimo.xbeans.geronimo.j2ee.GerAbstractSecurityType getSecurity()
2096        {
2097            synchronized (monitor())
2098            {
2099                check_orphaned();
2100                org.apache.geronimo.xbeans.geronimo.j2ee.GerAbstractSecurityType target = null;
2101                target = (org.apache.geronimo.xbeans.geronimo.j2ee.GerAbstractSecurityType)get_store().find_element_user(SECURITY$42, 0);
2102                if (target == null)
2103                {
2104                    return null;
2105                }
2106                return target;
2107            }
2108        }
2109        
2110        /**
2111         * True if has "security" element
2112         */
2113        public boolean isSetSecurity()
2114        {
2115            synchronized (monitor())
2116            {
2117                check_orphaned();
2118                return get_store().count_elements(SECURITY$42) != 0;
2119            }
2120        }
2121        
2122        /**
2123         * Sets the "security" element
2124         */
2125        public void setSecurity(org.apache.geronimo.xbeans.geronimo.j2ee.GerAbstractSecurityType security)
2126        {
2127            synchronized (monitor())
2128            {
2129                check_orphaned();
2130                org.apache.geronimo.xbeans.geronimo.j2ee.GerAbstractSecurityType target = null;
2131                target = (org.apache.geronimo.xbeans.geronimo.j2ee.GerAbstractSecurityType)get_store().find_element_user(SECURITY$42, 0);
2132                if (target == null)
2133                {
2134                    target = (org.apache.geronimo.xbeans.geronimo.j2ee.GerAbstractSecurityType)get_store().add_element_user(SECURITY$42);
2135                }
2136                target.set(security);
2137            }
2138        }
2139        
2140        /**
2141         * Appends and returns a new empty "security" element
2142         */
2143        public org.apache.geronimo.xbeans.geronimo.j2ee.GerAbstractSecurityType addNewSecurity()
2144        {
2145            synchronized (monitor())
2146            {
2147                check_orphaned();
2148                org.apache.geronimo.xbeans.geronimo.j2ee.GerAbstractSecurityType target = null;
2149                target = (org.apache.geronimo.xbeans.geronimo.j2ee.GerAbstractSecurityType)get_store().add_element_user(SECURITY$42);
2150                return target;
2151            }
2152        }
2153        
2154        /**
2155         * Unsets the "security" element
2156         */
2157        public void unsetSecurity()
2158        {
2159            synchronized (monitor())
2160            {
2161                check_orphaned();
2162                get_store().remove_element(SECURITY$42, 0);
2163            }
2164        }
2165        
2166        /**
2167         * Gets array of all "service" elements
2168         */
2169        public org.apache.geronimo.deployment.xbeans.AbstractServiceType[] getServiceArray()
2170        {
2171            synchronized (monitor())
2172            {
2173                check_orphaned();
2174                java.util.List targetList = new java.util.ArrayList();
2175                get_store().find_all_element_users(SERVICE$45, targetList);
2176                org.apache.geronimo.deployment.xbeans.AbstractServiceType[] result = new org.apache.geronimo.deployment.xbeans.AbstractServiceType[targetList.size()];
2177                targetList.toArray(result);
2178                return result;
2179            }
2180        }
2181        
2182        /**
2183         * Gets ith "service" element
2184         */
2185        public org.apache.geronimo.deployment.xbeans.AbstractServiceType getServiceArray(int i)
2186        {
2187            synchronized (monitor())
2188            {
2189                check_orphaned();
2190                org.apache.geronimo.deployment.xbeans.AbstractServiceType target = null;
2191                target = (org.apache.geronimo.deployment.xbeans.AbstractServiceType)get_store().find_element_user(SERVICE$45, i);
2192                if (target == null)
2193                {
2194                    throw new IndexOutOfBoundsException();
2195                }
2196                return target;
2197            }
2198        }
2199        
2200        /**
2201         * Returns number of "service" element
2202         */
2203        public int sizeOfServiceArray()
2204        {
2205            synchronized (monitor())
2206            {
2207                check_orphaned();
2208                return get_store().count_elements(SERVICE$45);
2209            }
2210        }
2211        
2212        /**
2213         * Sets array of all "service" element
2214         */
2215        public void setServiceArray(org.apache.geronimo.deployment.xbeans.AbstractServiceType[] serviceArray)
2216        {
2217            synchronized (monitor())
2218            {
2219                check_orphaned();
2220                arraySetterHelper(serviceArray, SERVICE$44, SERVICE$45);
2221            }
2222        }
2223        
2224        /**
2225         * Sets ith "service" element
2226         */
2227        public void setServiceArray(int i, org.apache.geronimo.deployment.xbeans.AbstractServiceType service)
2228        {
2229            synchronized (monitor())
2230            {
2231                check_orphaned();
2232                org.apache.geronimo.deployment.xbeans.AbstractServiceType target = null;
2233                target = (org.apache.geronimo.deployment.xbeans.AbstractServiceType)get_store().find_element_user(SERVICE$45, i);
2234                if (target == null)
2235                {
2236                    throw new IndexOutOfBoundsException();
2237                }
2238                target.set(service);
2239            }
2240        }
2241        
2242        /**
2243         * Inserts and returns a new empty value (as xml) as the ith "service" element
2244         */
2245        public org.apache.geronimo.deployment.xbeans.AbstractServiceType insertNewService(int i)
2246        {
2247            synchronized (monitor())
2248            {
2249                check_orphaned();
2250                org.apache.geronimo.deployment.xbeans.AbstractServiceType target = null;
2251                target = (org.apache.geronimo.deployment.xbeans.AbstractServiceType)get_store().insert_element_user(SERVICE$45, SERVICE$44, i);
2252                return target;
2253            }
2254        }
2255        
2256        /**
2257         * Appends and returns a new empty value (as xml) as the last "service" element
2258         */
2259        public org.apache.geronimo.deployment.xbeans.AbstractServiceType addNewService()
2260        {
2261            synchronized (monitor())
2262            {
2263                check_orphaned();
2264                org.apache.geronimo.deployment.xbeans.AbstractServiceType target = null;
2265                target = (org.apache.geronimo.deployment.xbeans.AbstractServiceType)get_store().add_element_user(SERVICE$44);
2266                return target;
2267            }
2268        }
2269        
2270        /**
2271         * Removes the ith "service" element
2272         */
2273        public void removeService(int i)
2274        {
2275            synchronized (monitor())
2276            {
2277                check_orphaned();
2278                get_store().remove_element(SERVICE$45, i);
2279            }
2280        }
2281        
2282        /**
2283         * Gets array of all "persistence" elements
2284         */
2285        public org.apache.geronimo.xbeans.persistence.PersistenceDocument.Persistence[] getPersistenceArray()
2286        {
2287            synchronized (monitor())
2288            {
2289                check_orphaned();
2290                java.util.List targetList = new java.util.ArrayList();
2291                get_store().find_all_element_users(PERSISTENCE$46, targetList);
2292                org.apache.geronimo.xbeans.persistence.PersistenceDocument.Persistence[] result = new org.apache.geronimo.xbeans.persistence.PersistenceDocument.Persistence[targetList.size()];
2293                targetList.toArray(result);
2294                return result;
2295            }
2296        }
2297        
2298        /**
2299         * Gets ith "persistence" element
2300         */
2301        public org.apache.geronimo.xbeans.persistence.PersistenceDocument.Persistence getPersistenceArray(int i)
2302        {
2303            synchronized (monitor())
2304            {
2305                check_orphaned();
2306                org.apache.geronimo.xbeans.persistence.PersistenceDocument.Persistence target = null;
2307                target = (org.apache.geronimo.xbeans.persistence.PersistenceDocument.Persistence)get_store().find_element_user(PERSISTENCE$46, i);
2308                if (target == null)
2309                {
2310                    throw new IndexOutOfBoundsException();
2311                }
2312                return target;
2313            }
2314        }
2315        
2316        /**
2317         * Returns number of "persistence" element
2318         */
2319        public int sizeOfPersistenceArray()
2320        {
2321            synchronized (monitor())
2322            {
2323                check_orphaned();
2324                return get_store().count_elements(PERSISTENCE$46);
2325            }
2326        }
2327        
2328        /**
2329         * Sets array of all "persistence" element
2330         */
2331        public void setPersistenceArray(org.apache.geronimo.xbeans.persistence.PersistenceDocument.Persistence[] persistenceArray)
2332        {
2333            synchronized (monitor())
2334            {
2335                check_orphaned();
2336                arraySetterHelper(persistenceArray, PERSISTENCE$46);
2337            }
2338        }
2339        
2340        /**
2341         * Sets ith "persistence" element
2342         */
2343        public void setPersistenceArray(int i, org.apache.geronimo.xbeans.persistence.PersistenceDocument.Persistence persistence)
2344        {
2345            synchronized (monitor())
2346            {
2347                check_orphaned();
2348                org.apache.geronimo.xbeans.persistence.PersistenceDocument.Persistence target = null;
2349                target = (org.apache.geronimo.xbeans.persistence.PersistenceDocument.Persistence)get_store().find_element_user(PERSISTENCE$46, i);
2350                if (target == null)
2351                {
2352                    throw new IndexOutOfBoundsException();
2353                }
2354                target.set(persistence);
2355            }
2356        }
2357        
2358        /**
2359         * Inserts and returns a new empty value (as xml) as the ith "persistence" element
2360         */
2361        public org.apache.geronimo.xbeans.persistence.PersistenceDocument.Persistence insertNewPersistence(int i)
2362        {
2363            synchronized (monitor())
2364            {
2365                check_orphaned();
2366                org.apache.geronimo.xbeans.persistence.PersistenceDocument.Persistence target = null;
2367                target = (org.apache.geronimo.xbeans.persistence.PersistenceDocument.Persistence)get_store().insert_element_user(PERSISTENCE$46, i);
2368                return target;
2369            }
2370        }
2371        
2372        /**
2373         * Appends and returns a new empty value (as xml) as the last "persistence" element
2374         */
2375        public org.apache.geronimo.xbeans.persistence.PersistenceDocument.Persistence addNewPersistence()
2376        {
2377            synchronized (monitor())
2378            {
2379                check_orphaned();
2380                org.apache.geronimo.xbeans.persistence.PersistenceDocument.Persistence target = null;
2381                target = (org.apache.geronimo.xbeans.persistence.PersistenceDocument.Persistence)get_store().add_element_user(PERSISTENCE$46);
2382                return target;
2383            }
2384        }
2385        
2386        /**
2387         * Removes the ith "persistence" element
2388         */
2389        public void removePersistence(int i)
2390        {
2391            synchronized (monitor())
2392            {
2393                check_orphaned();
2394                get_store().remove_element(PERSISTENCE$46, i);
2395            }
2396        }
2397    }