var BaseController = Class.create({
	
	action: '',
	
	initialize: function(parameters) {
		logInfo('init super');
		this.setAction(parameters.action);
		// Call corresponding init method
		var initMethod = 'init' + this.getAction().capitalize();
		try {
			this[initMethod]();
		} catch(e) {
			logException('Desired method not found: '+initMethod);
		}
	},
	
	setAction: function(value) {
		this.action = value;
	},
	
	getAction: function() {
		return this.action;
	}
	
});