class SW360ComponentAdapterUtils {

    static SW360Component validateComponent(SW360Component component) {
        if (StringUtils.isEmpty(component.getName())) {
            throw new IllegalArgumentException("Invalid component: missing property 'name'.");
        }
        if (component.getCategories() == null || component.getCategories().isEmpty()) {
            throw new IllegalArgumentException("Invalid component: missing property 'categories'.");
        }
        return component;
    }

    private  SW360ComponentAdapterUtils();

}