inline ResolveState GetState() const;
GetState obtains the state of the resource based on which you can call different functions.
The ResolveState of the resource.