}
private Hit<?> buildHit(Row row, JCRNodeWrapper node, RenderContext context) throws RepositoryException {
AbstractHit<?> searchHit = null;
if (node.isFile() || node.isNodeType(Constants.NT_FOLDER)) {
searchHit = new FileHit(node, context);
} else {
searchHit = new JCRNodeHit(node, context);
}
try {