Add getResource method to CoralStore which returns resource of the given type with given identifier.