def METHOD_NAME(self, phrasedml_str):
    ''' Changes all references of type myModel.xml to myModel.'''
    model_ref = re.compile(r'^.*\s*model\s*"([^"]*)"\s*$')
    out_str = ''
    for line in phrasedml_str.splitlines():
        match = model_ref.match(line)
        if match:
            filename = match.group(1)
            if self.isInRootDir(filename):
                line = line.replace(filename,self.formatResource(filename))
        out_str += line+'\n'
    return out_str