question: return the singleton catalogfactory instancefor the relevant classloader . for applications that use a thread context class loader such as web applications running inside a servet container , this will return a separate instance for each application , even if this class is loaded from a shared parent class loader . concode_field_sep Log log concode_elem_sep String DELIMITER concode_elem_sep Map factories concode_field_sep void addCatalog concode_elem_sep Command getCommand concode_elem_sep void clear concode_elem_sep void setCatalog concode_elem_sep ClassLoader getClassLoader concode_elem_sep Iterator getNames concode_elem_sep Catalog getCatalog concode_elem_sep Catalog getCatalog
target: CatalogFactory function ( ) { CatalogFactory loc0 = null ; ClassLoader loc1 = getClassLoader ( ) ; synchronized ( factories ) { loc0 = ( CatalogFactory ) factories . get ( loc1 ) ; if ( loc0 == null ) { loc0 = new CatalogFactoryBase ( ) ; factories . put ( loc1 , loc0 ) ; } } return loc0 ; }