private Object doInvokeMethod ( String methodName , Object name , Object args ) { Reference explicitResult = new Reference ( ) ; if ( checkExplicitMethod ( methodName , args , explicitResult ) ) { return explicitResult . get ( ) ; } else { try { return dispatchNodeCall ( name , args ) ; } catch ( MissingMethodException mme ) { if ( mme . getMethod ( ) . equals ( methodName ) && methodMissingDelegate != null ) { return methodMissingDelegate . call ( methodName , args ) ; } throw mme ; } } }
This method is the workhorse of the builder .