'generated source for method replaceFA'

@synchronized(mlock)
def replaceFA(self, faDataType, xml):

    if (not self.m_connected):
        self.notConnected()
        return
    if (self.m_serverVersion < 13):
        self.error(EClientErrors.NO_VALID_ID, EClientErrors.UPDATE_TWS.code(), EClientErrors.UPDATE_TWS.msg())
        return
    VERSION = 1
    try:
        self.send(self.REPLACE_FA)
        self.send(VERSION)
        self.send(faDataType)
        self.send(xml)
    except Exception as e:
        self.error(faDataType, EClientErrors.FAIL_SEND_FA_REPLACE, str(e))
        self.close()
