Object (String name, Object args) { final Object[] newArgs = constructNewArgs((Object[])args); // Get other DSL methods from extensions for (GdslMembersProvider provider : PROVIDERS) { final List<MetaMethod> variants = DefaultGroovyMethods.getMetaClass(provider).respondsTo(provider, name, newArgs); if (variants.size() == 1) { return InvokerHelper.invokeMethod(provider, name, newArgs); } } return null; }