protected final Representation getRepresentation(BooleanQueryResultWriterFactory factory,
MediaType mediaType)
throws ResourceException
{
BooleanResult booleanResult = getBooleanResult();
return new BooleanResultRepresentation(booleanResult, factory, mediaType);
}