'Generate RDFs for the fully expanded configs.
Args:
stats: A list of RDF StatEntries corresponding to the file_objects.
file_objects: A list of file handles.
Returns:
A tuple of a list of RDFValue PamConfigEntries found & a list of strings
which are the external config references found.'

def EnumerateAllConfigs(self, stats, file_objects):

    cache = {}
    for (stat_obj, file_obj) in zip(stats, file_objects):
        cache[stat_obj.pathspec.path] = file_obj.read()
    result = []
    external = []
    if (self.OLD_PAMCONF_FILENAME in cache):
        (result, external) = self.EnumerateConfig(None, self.OLD_PAMCONF_FILENAME, cache)
        if result:
            return (result, external)
    for path in cache:
        service = os.path.basename(path)
        (r, e) = self.EnumerateConfig(service, path, cache)
        result.extend(r)
        external.extend(e)
    return (result, external)
