Could I think be simplified to:

    <j:set var="buildUrl" value="${b.getRelativeUrl(it)}"/>