MapperStrategy cachedMapperStrategy = getStrategyFromCache(type);
if (cachedMapperStrategy != null) {
return cachedMapperStrategy;
}
SliceResource sliceResource = type.getAnnotation(SliceResource.class);
if (sliceResource != null) {
final MappingStrategy mappingStrategy = sliceResource.value();
MapperStrategy mapperStrategy = getStrategy(mappingStrategy, defaultStrategy);
putStrategyIntoCache(type, mapperStrategy);
return mapperStrategy;
}