@Override
    public String getNameHtml() {
        final SourceLink sourceLink = sourceLinkRenderer
                .getGedObject();
        if (!sourceLink.isSet()) {
            return "";
        }
        final Source source =
                (Source) sourceLink.find(sourceLink.getToString());
        if (source == null) {
            // Necessary because header can have embedded source
            return sourceLink.getToString();
        }
        final SourceRenderer sourceRenderer =
                (SourceRenderer) new GedRendererFactory().create(source,
                        sourceLinkRenderer.getRenderingContext());
        return sourceRenderer.getIndexNameHtml();
    }
@ Override public String getNameHtml ( ) { final SourceLink sourceLink = sourceLinkRenderer . getGedObject ( ) ; if ( ! sourceLink . isSet ( ) ) { return "" ; } final Source source = ( Source ) sourceLink . find ( sourceLink . getToString ( ) ) ; if ( source == null ) { return sourceLink . getToString ( ) ; } final SourceRenderer sourceRenderer = ( SourceRenderer ) new GedRendererFactory ( ) . create ( source , sourceLinkRenderer . getRenderingContext ( ) ) ; return sourceRenderer . getIndexNameHtml ( ) ; }
{@inheritDoc}