in arthur-impl/src/main/java/org/apache/geronimo/arthur/impl/nativeimage/generator/DefautContext.java [233:241]
public <T> T unwrap(final Class<T> type) {
if (ArthurNativeImageConfiguration.class == type) {
return type.cast(configuration);
}
if (type.isInstance(this)) {
return type.cast(this);
}
throw new IllegalArgumentException("Unsupported unwrapping: " + type);
}