/**
 * WAWResource manages all client-side objects
 */
var WAWResource = Class.create();

// The hash which will be used to store the objects
WAWResource.objects = new Hash();

// Returns an object from him qPath
WAWResource.get = function(qPath) {
	if (WAWResource.objects[qPath]) {
		return WAWResource.objects[qPath];
	}
};

// Adds an object to the WAWResource manager
WAWResource.add = function(object) {
	// The object must be 
	// 1- not null
	// 2- a valid W@WClientSideObject : (must have a qPath)
	// 3- no objects with a same qPath must be present
	if (object == null || 
		object.qPath == null || 
		WAWResource.objects[object.qPath] != null) {
		return;
	} else {
		WAWResource.objects[object.qPath] = object;
	}
};


