'return the service file'

@staticmethod
def get_resource_file(sfile, sfile_type='yaml'):

    contents = None
    with open(sfile) as sfd:
        contents = sfd.read()
    if (sfile_type == 'yaml'):
        if hasattr(yaml, 'RoundTripLoader'):
            contents = yaml.load(contents, yaml.RoundTripLoader)
        else:
            contents = yaml.safe_load(contents)
    elif (sfile_type == 'json'):
        contents = json.loads(contents)
    return contents
