Question: I am trying to create realms in keycloak using java.I am able to create realms from master realm but not by using the credentials of the other realm.

Is it only possible to create realm from the master realm? Can anyone help me?
Thanks in advance

Answer: 
the message

```
The method accept(Selektierung.BauwerkOption, capture#4-of ? extends Object) in the type BiConsumer<Selektierung.BauwerkOption,capture#4-of ? extends Object> is not applicable for the arguments (Selektierung.BauwerkOption, Object)

```

says, that `DEF` is declared as a `list` of `ColDef<BauwerkOption, ? extends Object>` and expects something, that extends an `Object` and not an `Object` itself. so if you remove `? extends` from the declaration of `DEF`, it should work

**Edit**

to be more specific in your code, you could create Value-Object-Classes for `Bauwerkstyp`, `Bezeichnung`, `Nutzungsart`, `Durchmesser`, etc. that extend the Type you want, for example `String` or `Double` and implement an Interface

```
public ColDefStringValue implements IColDefValue<String> {
    @Override
    public String getValue() {
        return ...;
    }
}

```

the interface could look like this

```
public interface ColDefValue<T> {
    T getValue();
}

```

the Interface could be used instead of `? extends Object` or `Object`

```
private static List<ColDef<BauwerkOption, IColDefValue<?>>> DEF = new ArrayList<>();

```
The problem is with `ColDef#getValueSetterFunction()`. This returns a `BiConsumer<BauwerkOption, ?>`, where the question mark refers to some type extending from `Object`. There's no way to know which specific type this is but it is definitely not `Object` itself. Passing a value of type `Object` to the `accept`method in `TableModelSelektierung#setValueAt()` will thus fail with:

```
incompatible types: java.lang.Object cannot be converted to capture#1 of ?

```