class CachedExportStrategy extends BaseSampleExportStrategy {

    @Override
    public boolean test(ExportParameters parameters) {
        if (parameters == null) {
            return false;
        }
        if (parameters.getContent() != null) {
            return false;
        }
        if (StringUtils.isEmpty(parameters.getPreparationId())) {
            return false;
        }
        try {
            final TransformationCacheKey contentKey = getCacheKey(parameters);
            return contentCache.has(contentKey);
        } catch (TDPException e) {
            LOGGER.debug("Unable to use cached export strategy.", e);
            return false;
        }
    }

}