lib/HalModuleParser.js
function(filename) {
		if (!fs.existsSync(filename)) {
			return when.reject(filename + ' doesn\'t exist');
		}

		var fileBuffer = fs.readFileSync(filename);
		if (!fileBuffer || (fileBuffer.length === 0)) {
			return when.reject(filename + ' was empty!');
		}

		return when.resolve(fileBuffer);
	}
function(filename) {
		if (!fs.existsSync(filename)) {
			return when.reject(filename + ' doesn\'t exist');
		}

		var fileBuffer = fs.readFileSync(filename);
		if (!fileBuffer || (fileBuffer.length === 0)) {
			return when.reject(filename + ' was empty!');
		}

		return when.resolve(fileBuffer);
	}
/*
goes and reads out the file if it exists and returns
a promise with the fileBuffer
@param String filename
@returns Promise
@private