public <T> Collection<T> getResult(Class<T> resultType) throws ConversionException {
try {
return OBJECT_MAPPER.readValue(getResultRaw(),
OBJECT_MAPPER.getTypeFactory().constructCollectionType(Collection.class, resultType));
} catch (IOException e) {
throw new ConversionException(e);
}
}
};
return result;
}