Resource ctor must be passed id