org.kie.api.io.ResourceConfiguration conf = null;
if( configuration != null ) {
if( configuration instanceof DecisionTableConfiguration ) {
conf = new DecisionTableConfigurationAdapter( (DecisionTableConfiguration) configuration );
} else if( configuration instanceof JaxbConfiguration ) {
conf = new JaxbConfigurationAdapter((JaxbConfiguration) configuration);
}
}
delegate.add(((ResourceAdapter)resource).getDelegate(), type.toKieResourceType(), conf );
}