code: function buildFromDirectory(dirPath){
  	var dbsetPath = path.join(dirPath,"dbsets");
  	if(fileutil.isExist(dbsetPath)){
  		defaultConfig['dbsets'] = dbsetPath;
  	}
  
  	var stubsPath = path.join(dirPath,"stubs");
  	if(fileutil.isExist(stubsPath)){
  		defaultConfig['stubs'] = stubsPath;
  	}
  
  	var dumpsPath = path.join(dirPath,"dumps");
  	if(fileutil.isExist(dumpsPath)){
  		defaultConfig['dumps'] = dumpsPath;
  	}
  
  	var mappingsPath = path.join(dirPath,"mappings");
  	var files = fileutil.ls(mappingsPath);
  	if(files.length > 0){
  		defaultConfig['mappings']['requests'] = [];
  		files.forEach(function(filename){
  			defaultConfig['mappings']['requests'].push(path.join(mappingsPath , filename));
  		});
  	}
  
  	var trustStorePath = path.join(dirPath,"truststore");
  	if(fileutil.isExist(trustStorePath)){
  		defaultConfig.server.key = path.join(trustStorePath , "server.key");
  		defaultConfig.server.cert = path.join(trustStorePath , "server.crt");
  
  		var cacertPath = path.join(trustStorePath,"ca");
  		var cacerts = fileutil.ls(cacertPath);
  
  		if(cacerts.length > 0){
  			defaultConfig.server.ca = [];
  			cacerts.forEach(function(filename){
  				defaultConfig.server.ca.push(path.join(cacertPath , filename));
  			});
  		}
  	}
  }
docs: /*
  build configurtaion on the basis of directory structure
  It'll ignore if there is any config file in specified directory.
  It update the path of : mappings, dbsets, and stubs, whichever is present