@staticmethod
def parse_config(contents):
    """ Parses the configuration data

        :param contents: list[str] List of lines from the configuration file
        :return: dict[str,str]
        """
    config = {}
    for line in contents:
        line = line.lstrip().rstrip('\r\n')
        if line.startswith('#'):
            continue
        if '=' not in line:
            continue
        key, _, value = line.partition('=')
        config[key.strip()] = value.lstrip()
    return config
