private ManagedList < RuntimeBeanReference > constructRuntimeBeanReferences ( ParserContext parserContext , List < Element > schemaElements ) { ManagedList < RuntimeBeanReference > runtimeBeanReferences = new ManagedList <> ( ) ; for ( Element schemaElement : schemaElements ) { if ( schemaElement . hasAttribute ( SCHEMA ) ) { runtimeBeanReferences . add ( new RuntimeBeanReference ( schemaElement . getAttribute ( SCHEMA ) ) ) ; } else { schemaParser . parse ( schemaElement , parserContext ) ; runtimeBeanReferences . add ( new RuntimeBeanReference ( schemaElement . getAttribute ( ID ) ) ) ; } } return runtimeBeanReferences ; }
Construct a List of RuntimeBeanReferences from the given list of schema elements under consideration of the given parser context