class ObjectGroupResponse {

    @JsonIgnore
    public Optional<VersionsModel> getLastVersionsModel(String qualifier) {

        Optional<QualifiersModel> first = getQualifiersModel(qualifier);

        if (first.isPresent()) {
            return first
                .get()
                .getVersions()
                .stream()
                .max(comparing(VersionsModel::getDataVersion));
        }
        return empty();
    }

}