class DeviceGroup extends UserDefinedEntity {

    public HealthStatus getHealthStatus() {
        if (CollectionUtils.isEmpty(devices)) {
            return HealthStatus.UNKNOWN;
        }
        boolean hasUnknownTrusts = false;
        for (Device device : devices) {
            switch (device.getHealthStatus()) {
                case UNTRUSTED:
                    return HealthStatus.UNTRUSTED;
                case UNKNOWN:
                    hasUnknownTrusts = true;
                    break;
                default:
                    break;
            }
        }

        if (hasUnknownTrusts) {
            return HealthStatus.UNKNOWN;
        }
        return HealthStatus.TRUSTED;
    }

    public  DeviceGroup(final String name);
    public  DeviceGroup(final String name, final String description);
    protected  DeviceGroup();

}