private List < Bw > getBWServices ( ) { List < Bw > result = new ArrayList < Bw > ( ) ; for ( JAXBElement < ? extends ServiceType > jaxbElement : application . getServices ( ) . getBaseService ( ) ) { if ( jaxbElement . getName ( ) . getLocalPart ( ) . equals ( "bw" ) ) { result . add ( ( Bw ) jaxbElement . getValue ( ) ) ; } } return result ; }
This method retrieves the list of objects of type BWServiceType .