* @param userRef
* Its URI.
* @return The FOAF representation of a user.
*/
protected Representation getFoafRepresentation(User user, Reference userRef) {
Graph graph = new Graph();
addFoaf(graph, user, userRef);
return new RdfRepresentation(graph, MediaType.TEXT_XML);
}