List<GroovyDSL> dsls = this.lookup.get(instance instanceof Class ? "java.lang.Class" : clazz.getTheClass().getName());
if (dsls != null) {
Iterator<GroovyDSL> dsli = dsls.iterator();
while (dsli.hasNext()) {
GroovyDSL dsl = dsli.next();
GroovyDSLProperty property = dsl.getProperty(clazz, instance, name);
if (property != null) return property;
}
}
return null;
}