added expandLinkedResources to Resource