class ResourceSetDescriptionValidator {

    public Map<String, Object> validate(Map<String, Object> resourceSetDescription) throws BadRequestException {

        JsonValue description = json(resourceSetDescription);

        validateName(description);
        validateUri(description);
        validateType(description);
        validateScopes(description);
        validateIconUri(description);
        validateLabels(description);

        return resourceSetDescription;
    }

}