class SW360ReleaseAdapterUtils {

    public static SW360Release validateRelease(SW360Release release) {
        if (StringUtils.isEmpty(release.getName())) {
            throw new IllegalArgumentException("Invalid release: missing property 'name'.");
        }
        if (StringUtils.isEmpty(release.getVersion())) {
            throw new IllegalArgumentException("Invalid release: missing property 'version'.");
        }
        return release;
    }

    private  SW360ReleaseAdapterUtils();

}