@staticmethod
def translate_to_boolean(value):
    """ Takes a boolean or string (eg. true, True, FALSE, etc.) value and returns (boolean) True or False
        :param value: True, 'true', 'false' or 'False' ...
        :return:
        """
    if isinstance(value, bool) or isinstance(value, int):
        return value
    elif isinstance(value, str):
        return value.lower() == 'true'
    else:
        raise ValueError('Invalid argument: ' + value +
            '. Needs to be of type boolean or string')
