define([
	"dojo/_base/kernel",
	"dojo/_base/lang",
	"dojo/Stateful"
], function(kernel, lang, Stateful){


	//target prop may refer to an object path
	var set = function(/*dojo/Stateful*/ target, /*String*/ targetProp, value){
		var tmp = {};
		lang.setObject(targetProp, value, tmp);
		target.set(tmp);
		return value;
	};

	return lang.setObject("obno.model.resource.set", set);
});