else if (args[0] instanceof Closure) {
currentBeanConfig = springConfig.addAbstractBean(name);
}
else {
List<?> constructorArgs = resolveConstructorArguments(args, 0, hasClosureArgument ? args.length - 1 : args.length);
currentBeanConfig = new DefaultBeanConfiguration(name, null, constructorArgs);
springConfig.addBeanConfiguration(name,currentBeanConfig);
}
if (hasClosureArgument) {
Closure<?> callable = (Closure<?>)args[args.length - 1];