public RecursiveTypeRegistry getRegistryForProgramName ( String programName ) { if ( localProgramContext . equals ( programName ) ) return this ; for ( RecursiveTypeRegistry registry : includes . values ( ) ) { if ( registry . getLocalProgramContext ( ) . equals ( programName ) ) { return registry ; } } for ( RecursiveTypeRegistry registry : includes . values ( ) ) { RecursiveTypeRegistry tmp = registry . getRegistryForProgramName ( programName ) ; if ( tmp != null ) { return tmp ; } } return null ; }
Get the registry to be used for the specific program . Search through all the included registries to find the best one .