Added put/obtain methods with keyResId.