Define resource, send the transport to the resource as a parameter