protected void addModelReference ( XAttributable object , SXTag target ) throws IOException { XAttributeLiteral modelRefAttr = ( XAttributeLiteral ) object . getAttributes ( ) . get ( XSemanticExtension . KEY_MODELREFERENCE ) ; if ( modelRefAttr != null ) { target . addAttribute ( "modelReference" , modelRefAttr . getValue ( ) ) ; } }
Helper method adds all model references of an attributable to the given tag .