class GenericResourceValidator implements ResourceValidator<ResourceType> {

    @Override
    public List<Exception> validate(ResourceType resource, boolean skipRepoFieldsValidation, Map<String, String[]> additionalParameters) {
        final List<Exception> validationErrors = new ArrayList<Exception>();
        if(!skipRepoFieldsValidation) {
            genericValidate(resource, validationErrors);
        }
        internalValidate(resource, validationErrors, additionalParameters);
        return validationErrors;
    }

}