Added attribute resolution support based on groovy.