class VulnerabilityConnector {

    public boolean isMoreRecent(Vulnerability vulnerability, Vulnerability other) {
        //update if one of the dates is not set
        if (Strings.isNullOrEmpty(vulnerability.getLastExternalUpdate()) ||
                Strings.isNullOrEmpty(other.getLastExternalUpdate())) {
            return true;
        }

        return vulnerability.getLastExternalUpdate().compareTo(other.getLastExternalUpdate()) > 0;
    }

    public  VulnerabilityConnector();

}