Fixed handling of composite resources, allowing xa-datasources to work
properly.