Abstract
Protected
executeProtected
throwProtected
throwA helper function that will either return the variable's value or throw an exception if the value is null or undefined. Unit testing is simplified by avoiding ??
The name of the variable being checked
The value of the variable being checked
The value of the variable if it is available, otherwise an exception is thrown.
All classes in the resource folder should implement this interface so that they can be instantiated in the main barrel.