modelRegistry.create(modelName, Collections.<String>emptyList(), new ModelCreator<R>() {
public ModelReference<R> getReference() {
return new ModelReference<R>(new ModelPath(modelName), new ModelType<R>(returnType));
}
public R create(Inputs inputs) {
<BUG>T instance = Modifier.isStatic(method.getModifiers()) ? null : toInstance(source);
</BUG>
return methodWrapper.invoke(instance);
}
public ModelRuleSourceDescriptor getSourceDescriptor() {

modelRegistry.create(modelName, Collections.<String>emptyList(), new ModelCreator<R>() {
public ModelReference<R> getReference() {
return new ModelReference<R>(new ModelPath(modelName), new ModelType<R>(returnType));
}
public R create(Inputs inputs) {
T instance = Modifier.isStatic(method.getModifiers()) ? null : toInstance(clazz);
return methodWrapper.invoke(instance);
}
public ModelRuleSourceDescriptor getSourceDescriptor() {
