question: public void store ( Element cat , List < String > trees ) { CatalogTreeManager manager = InstanceManager . getDefault ( jmri . CatalogTreeManager . class ) ; cat . setAttribute ( "class" , "jmri.jmrit.catalog.DefaultCatalogTreeManagerConfigXML" ) ; Iterator < String > iter = trees . iterator ( ) ; while ( iter . hasNext ( ) ) { String sname = iter . next ( ) ; if ( sname == null ) { log . error ( "System name null during store" ) ; continue ; } if ( log . isDebugEnabled ( ) ) { log . debug ( "system name is " + sname ) ; } if ( sname . charAt ( 1 ) != CatalogTree . XML ) { continue ; } CatalogTree ct = manager . getBySystemName ( sname ) ; Element elem = new Element ( "catalogTree" ) ; elem . setAttribute ( "systemName" , sname ) ; String uname = ct . getUserName ( ) ; if ( uname != null ) { elem . setAttribute ( "userName" , uname ) ; } storeNode ( elem , ct . getRoot ( ) ) ; if ( log . isDebugEnabled ( ) ) { log . debug ( "store CatalogTree " + sname ) ; } cat . addContent ( elem ) ; } }
target:  Default implementation for storing the contents of a CatalogTreeManager