class StateConverterAdapter implements StateConverter<S> {

    @Override
    public S convert(String stateRepresentation) {
        for (S state : type.getEnumConstants()) {
            if (stateRepresentation.equalsIgnoreCase(state.toString())) {
                return state;
            }
        }
        return null;
    }

    public  StateConverterAdapter(Class<S> clazz);

}