class CveSearchDataTranslator implements EntityTranslator<CveSearchData, CveSearchDataTranslator.VulnerabilityWithRelation> {

    @Override
    public VulnerabilityWithRelation apply(CveSearchData cveSearchData) {
        Vulnerability vulnerability = new CveSearchDataToVulnerabilityTranslator().apply(cveSearchData);
        ReleaseVulnerabilityRelation relation = new CveSearchDataToReleaseVulnerabilityRelationTranslator().apply(cveSearchData);
        return new VulnerabilityWithRelation(vulnerability,relation);
    }

}