public static List < ReferenceElement > getReferencesFromStanza ( Stanza stanza ) { List < ReferenceElement > references = new ArrayList <> ( ) ; List < ExtensionElement > extensions = stanza . getExtensions ( ReferenceElement . ELEMENT , ReferenceManager . NAMESPACE ) ; for ( ExtensionElement e : extensions ) { references . add ( ( ReferenceElement ) e ) ; } return references ; }
Return a list of all reference extensions contained in a stanza . If there are no reference elements return an empty list .