Pass context to resource.save