package eu.hlavki.identity.services.rest.util;

import static java.util.Collections.singletonList;
import javax.validation.ValidationProviderResolver;
import java.util.List;

/**
 * OSGi-friendly implementation of {@code javax.validation.SingleValidationProviderResolver} returning
 * {@code org.hibernate.validator.HibernateValidator} instance.
 *
 */
public class SingleValidationProviderResolver implements ValidationProviderResolver {

    private final Object provider;


    public SingleValidationProviderResolver(Object provider) {
        this.provider = provider;
    }


    @Override
    public List getValidationProviders() {
        return singletonList(provider);
    }
}

@@ -144,16 +144,65 @@
 solver;%0A
+import javax.validation.spi.ValidationProvider;%0A%0A
 import j
@@ -500,22 +500,37 @@
 e final 
-Object
+ValidationProvider%3C?%3E
  provide
@@ -582,14 +582,29 @@
 ver(
-Object
+ValidationProvider%3C?%3E
  pro
@@ -683,16 +683,39 @@
 lic List
+%3CValidationProvider%3C?%3E%3E
  getVali

use proper generics in SingleValidationProviderResolver