List<RepositoryProblem> problemArtifacts =
dao.getRepositoryProblemDAO().queryRepositoryProblems( configureConstraint() );
String contextPath =
request.getRequestURL().substring( 0, request.getRequestURL().indexOf( request.getRequestURI() ) );
RepositoryProblem problemArtifact;
RepositoryProblemReport problemArtifactReport;
for ( int i = 0; i < problemArtifacts.size(); i++ )
{
problemArtifact = (RepositoryProblem) problemArtifacts.get( i );
problemArtifactReport = new RepositoryProblemReport( problemArtifact );
problemArtifactReport.setGroupURL( contextPath + "/browse/" + problemArtifact.getGroupId() );
problemArtifactReport.setArtifactURL(
contextPath + "/browse/" + problemArtifact.getGroupId() + "/" + problemArtifact.getArtifactId() );
reports.add( problemArtifactReport );
}
if ( reports.size() <= rowCount )