inline Resource* GetResource() const;
GetResource obtains the resource pointer only if GetState is equal to RS_Available.
Resource pointer.