BUGFIX : resource is a complex type, not a hash