private void renderAsDT(Writer writer, ProjectModel project, Iterator<Link> links, boolean wrap) throws IOException
    {
        if (!links.hasNext())
            return;

        if (wrap)
            writer.append("<dl>");
        while (links.hasNext())
        {
            Link link = links.next();
            writer.append("<dt>").append(link.getDescription());
            writer.append("</dt><dd><a href='").append(link.getLink());
            appendProject(writer, project);
            writer.append("'>Link</a></dd>");
        }
        if (wrap)
            writer.append("</dl>");
    }
private void renderAsDT ( Writer writer , ProjectModel project , Iterator < Link > links , boolean wrap ) throws IOException { if ( ! links . hasNext ( ) ) return ; if ( wrap ) writer . append ( "<dl>" ) ; while ( links . hasNext ( ) ) { Link link = links . next ( ) ; writer . append ( "<dt>" ) . append ( link . getDescription ( ) ) ; writer . append ( "</dt><dd><a href='" ) . append ( link . getLink ( ) ) ; appendProject ( writer , project ) ; writer . append ( "'>Link</a></dd>" ) ; } if ( wrap ) writer . append ( "</dl>" ) ; }
/*
Renders as DT elements, optionally wraps in DL