method.send(new KarakaJsonCallback<Years, GetYearsResult>(yearsReader, resultCallback)
{
@Override
protected GetYearsResult extractResult(final Method method, JsonReader<Years> reader, JSONObject json)
{
Years years = reader.read(json);
years.setLinks(readHeaderLinks(method));
return new GetYearsResult(years);
}
});
}