[Lada-commits] [PATCH] Removed old importer stuff and added new Importer based on antlr4 grammar
Wald Commits
scm-commit at wald.intevation.org
Fri Sep 30 14:06:34 CEST 2016
IyBIRyBjaGFuZ2VzZXQgcGF0Y2gKIyBVc2VyIFJhaW11bmQgUmVua2VydCA8cmFpbXVuZC5yZW5r
ZXJ0QGludGV2YXRpb24uZGU+CiMgRGF0ZSAxNDc1MjM3MTI4IC03MjAwCiMgQnJhbmNoIHNjaGVt
YS11cGRhdGUKIyBOb2RlIElEIGZkYzc1MmNkMTdmZTliOWJmNzRkMjg4ZDAxOTcwYzUzMjE2YmRm
NDQKIyBQYXJlbnQgIDIxYWI0ZDM1MTM1YWQwNzNjZmQ2ZDM2Y2M3MTcyOGM5OWNlNjc1MzMKUmVt
b3ZlZCBvbGQgaW1wb3J0ZXIgc3R1ZmYgYW5kIGFkZGVkIG5ldyBJbXBvcnRlciBiYXNlZCBvbiBh
bnRscjQgZ3JhbW1hci4KV0lQISBDdXJyZW50bHkgb25seSB0aGUgcGFyc2VyIHdpdGhvdXQgbWFw
cGluZyB0byBvYmplY3RzCgpkaWZmIC1yIDIxYWI0ZDM1MTM1YSAtciBmZGM3NTJjZDE3ZmUgcG9t
LnhtbAotLS0gYS9wb20ueG1sCVR1ZSBTZXAgMjAgMTY6MDE6MDIgMjAxNiArMDIwMAorKysgYi9w
b20ueG1sCUZyaSBTZXAgMzAgMTQ6MDU6MjggMjAxNiArMDIwMApAQCAtMTIyLDYgKzEyMiwxMiBA
QAogICAgICAgICAgICAgPHZlcnNpb24+NC4zPC92ZXJzaW9uPgogICAgICAgICA8L2RlcGVuZGVu
Y3k+Cj0yMAorCQk8ZGVwZW5kZW5jeT4KKwkJCTxncm91cElkPm9yZy5hbnRscjwvZ3JvdXBJZD4K
KwkJCTxhcnRpZmFjdElkPmFudGxyNC1ydW50aW1lPC9hcnRpZmFjdElkPgorCQkJPHZlcnNpb24+
NC41PC92ZXJzaW9uPgorCQk8L2RlcGVuZGVuY3k+CisKICAgIC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ydEl0ZW0+Pigp
OworICAgICAgICBjdXJyZW50RXJyb3JzID0zRCBuZXcgQXJyYXlMaXN0PFJlcG9ydEl0ZW0+KCk7
CisgICAgfQorCisgICAgcHVibGljIExhZlJhd0RhdGEgZ2V0RGF0YSgpIHsKKyAgICAgICAgcmV0
dXJuIGRhdGE7CisgICAgfQorCisgICAgLyoqCisgICAgICogQHJldHVybiB0aGUgZXJyb3JzCisg
ICAgICovCisgICAgcHVibGljIE1hcDxTdHJpbmcsIExpc3Q8UmVwb3J0SXRlbT4+IGdldEVycm9y
cygpIHsKKyAgICAgICAgcmV0dXJuIGVycm9yczsKKyAgICB9CisKKyAgICAvKioKKyAgICAgKiB7
QGluaGVyaXREb2N9CisgICAgICoKKyAgICAgKiA8cD5UaGUgZGVmYXVsdCBpbXBsZW1lbnRhdGlv
biBkb2VzIG5vdGhpbmcuPC9wPgorICAgICAqLworICAgIEBPdmVycmlkZSBwdWJsaWMgdm9pZCBl
bnRlclByb2JlbmRhdGVpKExhZlBhcnNlci5Qcm9iZW5kYXRlaUNvbnRleHQgY3Q9CngpIHsKKyAg
ICAgICAgU3lzdGVtLm91dC5wcmludGxuKCJlbnRlcmluZyBwcm9iZS1kYXRlaSIpOworICAgIH0K
KworICAgIC8qKgorICAgICAqIHtAaW5oZXJpdERvY30KKyAgICAgKgorICAgICAqIDxwPlRoZSBk
ZWZhdWx0IGltcGxlbWVudGF0aW9uIGRvZXMgbm90aGluZy48L3A+CisgICAgICovCisgICAgQE92
ZXJyaWRlIHB1YmxpYyB2b2lkIGV4aXRQcm9iZW5kYXRlaShMYWZQYXJzZXIuUHJvYmVuZGF0ZWlD
b250ZXh0IGN0eD0KKSB7CisgICAgfQorCisgICAgLyoqCisgICAgICoge0Bpbmhlcml0RG9jfQor
ICAgICAqCisgICAgICogPHA+VGhlIGRlZmF1bHQgaW1wbGVtZW50YXRpb24gZG9lcyBub3RoaW5n
LjwvcD4KKyAgICAgKi8KKyAgICBAT3ZlcnJpZGUgcHVibGljIHZvaWQgZW50ZXJFbmQoTGFmUGFy
c2VyLkVuZENvbnRleHQgY3R4KSB7CisgICAgICAgIGlmIChjdXJyZW50UHJvYmUgIT0zRCBudWxs
KSB7CisgICAgICAgICAgICBkYXRhLmFkZFByb2JlKGN1cnJlbnRQcm9iZSk7CisgICAgICAgICAg
ICBTdHJpbmcgaWRlbnRpZmllciA9M0QgY3VycmVudFByb2JlLmdldEF0dHJpYnV0ZXMoKS5nZXQo
IlBST0JFXz0KSUQiKTsKKyAgICAgICAgICAgIGlkZW50aWZpZXIgPTNEIGlkZW50aWZpZXIgPTNE
PTNEIG51bGwgPyBjdXJyZW50UHJvYmUuZ2V0QXR0cmliPQp1dGVzKCkuZ2V0KCJQUk9CRU5fTlIi
KSA6IG51bGw7CisgICAgICAgICAgICBpZGVudGlmaWVyID0zRCBpZGVudGlmaWVyID0zRD0zRCBu
dWxsID8gY3VycmVudFByb2JlLmdldEF0dHJpYj0KdXRlcygpLmdldCgiSEFVUFRQUk9CRU5fTlIi
KSA6ICJub3QgaWRlbnRpZmllZCI7CisgICAgICAgICAgICBlcnJvcnMucHV0KGlkZW50aWZpZXIs
IGN1cnJlbnRFcnJvcnMpOworICAgICAgICAgICAgY3VycmVudEVycm9ycy5jbGVhcigpOworICAg
ICAgICAgICAgY3VycmVudFByb2JlID0zRCBudWxsOworICAgICAgICB9CisgICAgfQorCisgICAg
LyoqCisgICAgICoge0Bpbmhlcml0RG9jfQorICAgICAqCisgICAgICogPHA+VGhlIGRlZmF1bHQg
aW1wbGVtZW50YXRpb24gZG9lcyBub3RoaW5nLjwvcD4KKyAgICAgKi8KKyAgICBAT3ZlcnJpZGUg
cHVibGljIHZvaWQgZW50ZXJQcm9iZShMYWZQYXJzZXIuUHJvYmVDb250ZXh0IGN0eCkgeworICAg
ICAgICBpZiAoY3VycmVudE1lc3N1bmcgIT0zRCBudWxsKSB7CisgICAgICAgICAgICBjdXJyZW50
UHJvYmUuYWRkTWVzc3VuZyhjdXJyZW50TWVzc3VuZyk7CisgICAgICAgICAgICBjdXJyZW50TWVz
c3VuZyA9M0QgbnVsbDsKKyAgICAgICAgfQorICAgICAgICBjdXJyZW50UHJvYmUgPTNEIGRhdGEu
bmV3IFByb2JlKCk7CisgICAgfQorCisgICAgLyoqCisgICAgICoge0Bpbmhlcml0RG9jfQorICAg
ICAqCisgICAgICogPHA+VGhlIGRlZmF1bHQgaW1wbGVtZW50YXRpb24gZG9lcyBub3RoaW5nLjwv
cD4KKyAgICAgKi8KKyAgICBAT3ZlcnJpZGUgcHVibGljIHZvaWQgZXhpdFByb2JlKExhZlBhcnNl
ci5Qcm9iZUNvbnRleHQgY3R4KSB7CisgICAgICAgIGRhdGEuYWRkUHJvYmUoY3VycmVudFByb2Jl
KTsKKyAgICAgICAgU3RyaW5nIGlkZW50aWZpZXIgPTNEIGN1cnJlbnRQcm9iZS5nZXRBdHRyaWJ1
dGVzKCkuZ2V0KCJQUk9CRV9JRCIpOworICAgICAgICBpZGVudGlmaWVyID0zRCBpZGVudGlmaWVy
ID0zRD0zRCBudWxsID8gY3VycmVudFByb2JlLmdldEF0dHJpYnV0ZXM9CigpLmdldCgiUFJPQkVO
X05SIikgOiBudWxsOworICAgICAgICBpZGVudGlmaWVyID0zRCBpZGVudGlmaWVyID0zRD0zRCBu
dWxsID8gY3VycmVudFByb2JlLmdldEF0dHJpYnV0ZXM9CigpLmdldCgiSEFVUFRQUk9CRU5fTlIi
KSA6ICJub3QgaWRlbnRpZmllZCI7CisgICAgICAgIGVycm9ycy5wdXQoaWRlbnRpZmllciwgY3Vy
cmVudEVycm9ycyk7CisgICAgICAgIGN1cnJlbnRFcnJvcnMuY2xlYXIoKTsKKyAgICAgICAgY3Vy
cmVudFByb2JlID0zRCBudWxsOworICAgIH0KKworICAgIC8qKgorICAgICAqIHtAaW5oZXJpdERv
Y30KKyAgICAgKgorICAgICAqIDxwPlRoZSBkZWZhdWx0IGltcGxlbWVudGF0aW9uIGRvZXMgbm90
aGluZy48L3A+CisgICAgICovCisgICAgQE92ZXJyaWRlIHB1YmxpYyB2b2lkIGVudGVyRGIoTGFm
UGFyc2VyLkRiQ29udGV4dCBjdHgpIHsKKyAgICB9CisKKyAgICAvKioKKyAgICAgKiB7QGluaGVy
aXREb2N9CisgICAgICoKKyAgICAgKiA8cD5UaGUgZGVmYXVsdCBpbXBsZW1lbnRhdGlvbiBkb2Vz
IG5vdGhpbmcuPC9wPgorICAgICAqLworICAgIEBPdmVycmlkZSBwdWJsaWMgdm9pZCBlbnRlclVz
KExhZlBhcnNlci5Vc0NvbnRleHQgY3R4KSB7CisgICAgfQorCisgICAgLyoqCisgICAgICoge0Bp
bmhlcml0RG9jfQorICAgICAqCisgICAgICogPHA+VGhlIGRlZmF1bHQgaW1wbGVtZW50YXRpb24g
ZG9lcyBub3RoaW5nLjwvcD4KKyAgICAgKi8KKyAgICBAT3ZlcnJpZGUgcHVibGljIHZvaWQgZW50
ZXJNcChMYWZQYXJzZXIuTXBDb250ZXh0IGN0eCkgeworICAgIH0KKworICAgIC8qKgorICAgICAq
IHtAaW5oZXJpdERvY30KKyAgICAgKgorICAgICAqIDxwPlRoZSBkZWZhdWx0IGltcGxlbWVudGF0
aW9uIGRvZXMgbm90aGluZy48L3A+CisgICAgICovCisgICAgQE92ZXJyaWRlIHB1YmxpYyB2b2lk
IGVudGVyVWIoTGFmUGFyc2VyLlViQ29udGV4dCBjdHgpIHsKKyAgICB9CisKKyAgICAvKioKKyAg
ICAgKiB7QGluaGVyaXREb2N9CisgICAgICoKKyAgICAgKiA8cD5UaGUgZGVmYXVsdCBpbXBsZW1l
bnRhdGlvbiBkb2VzIG5vdGhpbmcuPC9wPgorICAgICAqLworICAgIEBPdmVycmlkZSBwdWJsaWMg
dm9pZCBlbnRlclJlaShMYWZQYXJzZXIuUmVpQ29udGV4dCBjdHgpIHsKKyAgICB9CisKKyAgICAv
KioKKyAgICAgKiB7QGluaGVyaXREb2N9CisgICAgICoKKyAgICAgKiA8cD5UaGUgZGVmYXVsdCBp
bXBsZW1lbnRhdGlvbiBkb2VzIG5vdGhpbmcuPC9wPgorICAgICAqLworICAgIEBPdmVycmlkZSBw
dWJsaWMgdm9pZCBlbnRlclBoKExhZlBhcnNlci5QaENvbnRleHQgY3R4KSB7CisgICAgfQorCisg
ICAgLyoqCisgICAgICoge0Bpbmhlcml0RG9jfQorICAgICAqCisgICAgICogPHA+VGhlIGRlZmF1
bHQgaW1wbGVtZW50YXRpb24gZG9lcyBub3RoaW5nLjwvcD4KKyAgICAgKi8KKyAgICBAT3ZlcnJp
ZGUgcHVibGljIHZvaWQgZW50ZXJQZyhMYWZQYXJzZXIuUGdDb250ZXh0IGN0eCkgeworICAgIH0K
KworICAgIC8qKgorICAgICAqIHtAaW5oZXJpdERvY30KKyAgICAgKgorICAgICAqIDxwPlRoZSBk
ZWZhdWx0IGltcGxlbWVudGF0aW9uIGRvZXMgbm90aGluZy48L3A+CisgICAgICovCisgICAgQE92
ZXJyaWRlIHB1YmxpYyB2b2lkIGVudGVyUGsoTGFmUGFyc2VyLlBrQ29udGV4dCBjdHgpIHsKKyAg
ICB9CisKKyAgICAvKioKKyAgICAgKiB7QGluaGVyaXREb2N9CisgICAgICoKKyAgICAgKiA8cD5U
aGUgZGVmYXVsdCBpbXBsZW1lbnRhdGlvbiBkb2VzIG5vdGhpbmcuPC9wPgorICAgICAqLworICAg
IEBPdmVycmlkZSBwdWJsaWMgdm9pZCBlbnRlclpiKExhZlBhcnNlci5aYkNvbnRleHQgY3R4KSB7
CisgICAgfQorCisgICAgLyoqCisgICAgICoge0Bpbmhlcml0RG9jfQorICAgICAqCisgICAgICog
PHA+VGhlIGRlZmF1bHQgaW1wbGVtZW50YXRpb24gZG9lcyBub3RoaW5nLjwvcD4KKyAgICAgKi8K
KyAgICBAT3ZlcnJpZGUgcHVibGljIHZvaWQgZW50ZXJQemIoTGFmUGFyc2VyLlB6YkNvbnRleHQg
Y3R4KSB7CisgICAgfQorCisgICAgLyoqCisgICAgICoge0Bpbmhlcml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5VaENvbnRleHQgY3R4KSB7CisgICAgfQorCisgICAgLyoqCisgICAg
ICoge0Bpbmhlcml0RG9jfQorICAgICAqCisgICAgICogPHA+VGhlIGRlZmF1bHQgaW1wbGVtZW50
YXRpb24gZG9lcyBub3RoaW5nLjwvcD4KKyAgICAgKi8KKyAgICBAT3ZlcnJpZGUgcHVibGljIHZv
aWQgZW50ZXJVZyhMYWZQYXJzZXIuVWdDb250ZXh0IGN0eCkgeworICAgIH0KKworICAgIC8qKgor
ICAgICAqIHtAaW5oZXJpdERvY30KKyAgICAgKgorICAgICAqIDxwPlRoZSBkZWZhdWx0IGltcGxl
bWVudGF0aW9uIGRvZXMgbm90aGluZy48L3A+CisgICAgICovCisgICAgQE92ZXJyaWRlIHB1Ymxp
YyB2b2lkIGVudGVyVWsoTGFmUGFyc2VyLlVrQ29udGV4dCBjdHgpIHsKKyAgICB9CisKKyAgICAv
KioKKyAgICAgKiB7QGluaGVyaXREb2N9CisgICAgICoKKyAgICAgKiA8cD5UaGUgZGVmYXVsdCBp
bXBsZW1lbnRhdGlvbiBkb2VzIG5vdGhpbmcuPC9wPgorICAgICAqLworICAgIEBPdmVycmlkZSBw
dWJsaWMgdm9pZCBlbnRlck1lc3N1bmcoTGFmUGFyc2VyLk1lc3N1bmdDb250ZXh0IGN0eCkgewor
ICAgICAgICBpZiAoY3VycmVudE1lc3N1bmcgIT0zRCBudWxsKSB7CisgICAgICAgICAgICBjdXJy
ZW50UHJvYmUuYWRkTWVzc3VuZyhjdXJyZW50TWVzc3VuZyk7CisgICAgICAgIH0KKyAgICAgICAg
Y3VycmVudE1lc3N1bmcgPTNEIGRhdGEubmV3IE1lc3N1bmcoKTsKKyAgICB9CisKKyAgICAvKioK
KyAgICAgKiB7QGluaGVyaXREb2N9CisgICAgICoKKyAgICAgKiA8cD5UaGUgZGVmYXVsdCBpbXBs
ZW1lbnRhdGlvbiBkb2VzIG5vdGhpbmcuPC9wPgorICAgICAqLworICAgIEBPdmVycmlkZSBwdWJ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kKDApLnRvU3RyaW5nKCkpOworICAgICAgICAgICAgZXJyLnNldFZhbHVlKHZhbHVlKTsK
KyAgICAgICAgICAgIGVyci5zZXRDb2RlKDY3MCk7CisgICAgICAgICAgICBjdXJyZW50RXJyb3Jz
LmFkZChlcnIpOzsKKyAgICAgICAgICAgIHJldHVybjsKKyAgICAgICAgfQorICAgICAgICBjdXJy
ZW50UHJvYmUuYWRkQXR0cmlidXRlKGN0eC5nZXRDaGlsZCgwKS50b1N0cmluZygpLnRvVXBwZXJD
YXNlKCk9CiwgdmFsdWUpOworICAgICAgICBTeXN0ZW0ub3V0LnByaW50bG4oY3R4LmdldENoaWxk
KDApICsgIjogIiArIHZhbHVlKTsKKyAgICB9CisKKyAgICAvKioKKyAgICAgKiB7QGluaGVyaXRE
b2N9CisgICAgICoKKyAgICAgKiA8cD5UaGUgZGVmYXVsdCBpbXBsZW1lbnRhdGlvbiBkb2VzIG5v
dGhpbmcuPC9wPgorICAgICAqLworICAgIEBPdmVycmlkZSBwdWJsaWMgdm9pZCBlbnRlckRhdGVu
YmFzaXNfcyhMYWZQYXJzZXIuRGF0ZW5iYXNpc19zQ29udGV4dCA9CmN0eCkgeworICAgICAgICBT
dHJpbmcgdmFsdWUgPTNEIGN0eC5nZXRDaGlsZCgxKS50b1N0cmluZygpOworICAgICAgICB2YWx1
ZSA9M0QgdmFsdWUucmVwbGFjZUFsbCgiXCIiLCAiIik7CisgICAgICAgIGlmICghdmFsdWUubWF0
Y2hlcyhMYWZEYXRhVHlwZXMuU0kyKSkgeworICAgICAgICAgICAgUmVwb3J0SXRlbSBlcnIgPTNE
IG5ldyBSZXBvcnRJdGVtKCk7CisgICAgICAgICAgICBlcnIuc2V0S2V5KGN0eC5nZXRDaGlsZCgw
KS50b1N0cmluZygpKTsKKyAgICAgICAgICAgIGVyci5zZXRWYWx1ZSh2YWx1ZSk7CisgICAgICAg
ICAgICBlcnIuc2V0Q29kZSg2NzApOworICAgICAgICAgICAgY3VycmVudEVycm9ycy5hZGQoZXJy
KTs7CisgICAgICAgICAgICByZXR1cm47CisgICAgICAgIH0KKyAgICAgICAgY3VycmVudFByb2Jl
LmFkZEF0dHJpYnV0ZShjdHguZ2V0Q2hpbGQoMCkudG9TdHJpbmcoKS50b1VwcGVyQ2FzZSgpPQos
IHZhbHVlKTsKKyAgICAgICAgU3lzdGVtLm91dC5wcmludGxuKGN0eC5nZXRDaGlsZCgwKSArICI6
ICIgKyB2YWx1ZSk7CisgICAgfQorCisgICAgLyoqCisgICAgICoge0Bpbmhlcml0RG9jfQorICAg
ICAqCisgICAgICogPHA+VGhlIGRlZmF1bHQgaW1wbGVtZW50YXRpb24gZG9lcyBub3RoaW5nLjwv
cD4KKyAgICAgKi8KKyAgICBAT3ZlcnJpZGUgcHVibGljIHZvaWQgZW50ZXJOZXR6a2VubnVuZyhM
YWZQYXJzZXIuTmV0emtlbm51bmdDb250ZXh0IGN0PQp4KSB7CisgICAgICAgIFN0cmluZyB2YWx1
ZSA9M0QgY3R4LmdldENoaWxkKDEpLnRvU3RyaW5nKCk7CisgICAgICAgIHZhbHVlID0zRCB2YWx1
ZS5yZXBsYWNlQWxsKCJcIiIsICIiKTsKKyAgICAgICAgaWYgKCF2YWx1ZS5tYXRjaGVzKExhZkRh
dGFUeXBlcy5DMikpIHsKKyAgICAgICAgICAgIFJlcG9ydEl0ZW0gZXJyID0zRCBuZXcgUmVwb3J0
SXRlbSgpOworICAgICAgICAgICAgZXJyLnNldEtleShjdHguZ2V0Q2hpbGQoMCkudG9TdHJpbmco
KSk7CisgICAgICAgICAgICBlcnIuc2V0VmFsdWUodmFsdWUpOworICAgICAgICAgICAgZXJyLnNl
dENvZGUoNjcwKTsKKyAgICAgICAgICAgIGN1cnJlbnRFcnJvcnMuYWRkKGVycik7OworICAgICAg
ICAgICAgcmV0dXJuOworICAgICAgICB9CisgICAgICAgIGN1cnJlbnRQcm9iZS5hZGRBdHRyaWJ1
dGUoY3R4LmdldENoaWxkKDApLnRvU3RyaW5nKCk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isgICAgICoge0Bpbmhlcml0RG9jfQorICAgICAqCisgICAgICogPHA+VGhlIGRlZmF1bHQgaW1w
bGVtZW50YXRpb24gZG9lcyBub3RoaW5nLjwvcD4KKyAgICAgKi8KKyAgICBAT3ZlcnJpZGUgcHVi
bGljIHZvaWQgZW50ZXJTdGFhdF9kZXJfbWVzc3N0ZWxsZV9sYW5nKExhZlBhcnNlci5TdGFhdF9k
PQplcl9tZXNzc3RlbGxlX2xhbmdDb250ZXh0IGN0eCkgeworICAgICAgICBTdHJpbmcgdmFsdWUg
PTNEIGN0eC5nZXRDaGlsZCgxKS50b1N0cmluZygpOworICAgICAgICB2YWx1ZSA9M0QgdmFsdWUu
cmVwbGFjZUFsbCgiXCIiLCAiIik7CisgICAgICAgIGlmICghdmFsdWUubWF0Y2hlcyhMYWZEYXRh
VHlwZXMuQ19TVEFSKSkgeworICAgICAgICAgICAgUmVwb3J0SXRlbSBlcnIgPTNEIG5ldyBSZXBv
cnRJdGVtKCk7CisgICAgICAgICAgICBlcnIuc2V0S2V5KGN0eC5nZXRDaGlsZCgwKS50b1N0cmlu
ZygpKTsKKyAgICAgICAgICAgIGVyci5zZXRWYWx1ZSh2YWx1ZSk7CisgICAgICAgICAgICBlcnIu
c2V0Q29kZSg2NzApOworICAgICAgICAgICAgY3VycmVudEVycm9ycy5hZGQoZXJyKTs7CisgICAg
ICAgICAgICByZXR1cm47CisgICAgICAgIH0KKyAgICAgICAgY3VycmVudFByb2JlLmFkZEF0dHJp
YnV0ZShjdHguZ2V0Q2hpbGQoMCkudG9TdHJpbmcoKS50b1VwcGVyQ2FzZSgpPQosIHZhbHVlKTsK
KyAgICAgICAgU3lzdGVtLm91dC5wcmludGxuKGN0eC5nZXRDaGlsZCgwKSArICI6ICIgKyB2YWx1
ZSk7CisgICAgfQorCisgICAgLyoqCisgICAgICoge0Bpbmhlcml0RG9jfQorICAgICAqCisgICAg
ICogPHA+VGhlIGRlZmF1bHQgaW1wbGVtZW50YXRpb24gZG9lcyB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kudG9TdHJpbmcoKSk7CisgICAgICAgICAg
ICBlcnIuc2V0VmFsdWUodmFsdWUpOworICAgICAgICAgICAgZXJyLnNldENvZGUoNjcwKTsKKyAg
ICAgICAgICAgIGN1cnJlbnRFcnJvcnMuYWRkKGVycik7OworICAgICAgICAgICAgcmV0dXJuOwor
ICAgICAgICB9CisgICAgICAgIGN1cnJlbnRQcm9iZS5hZGRBdHRyaWJ1dGUoY3R4LmdldENoaWxk
KDApLnRvU3RyaW5nKCkudG9VcHBlckNhc2UoKT0KLCB2YWx1ZSk7CisgICAgICAgIFN5c3RlbS5v
dXQucHJpbnRsbihjdHguZ2V0Q2hpbGQoMCkgKyAiOiAiICsgdmFsdWUpOworICAgIH0KKworICAg
IC8qKgorICAgICAqIHtAaW5oZXJpdERvY30KKyAgICAgKgorICAgICAqIDxwPlRoZSBkZWZhdWx0
IGltcGxlbWVudGF0aW9uIGRvZXMgbm90aGluZy48L3A+CisgICAgICovCisgICAgQE92ZXJyaWRl
IHB1YmxpYyB2b2lkIGVudGVyTWVzc3VuZ3NfaWQoTGFmUGFyc2VyLk1lc3N1bmdzX2lkQ29udGV4
dCBjdD0KeCkgeworICAgICAgICBTdHJpbmcgdmFsdWUgPTNEIGN0eC5nZXRDaGlsZCgxKS50b1N0
cmluZygpOworICAgICAgICB2YWx1ZSA9M0QgdmFsdWUucmVwbGFjZUFsbCgiXCIiLCAiIik7Cisg
ICAgICAgIGlmICghdmFsdWUubWF0Y2hlcyhMYWZEYXRhVHlwZXMuSTIpKSB7CisgICAgICAgICAg
ICBSZXBvcnRJdGVtIGVyciA9M0QgbmV3IFJlcG9ydEl0ZW0oKTsKKyAgICAgICAgICAgIGVyci5z
ZXRLZXkoY3R4LmdldENoaWxkKDApLnRvU3RyaW5nKCkpOworICAgICAgICAgICAgZXJyLnNldFZh
bHVlKHZhbHVlKTsKKyAgICAgICAgICAgIGVyci5zZXRDb2RlKDY3MCk7CisgICAgICAgICAgICBj
dXJyZW50RXJyb3JzLmFk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CgwKS50b1N0cmluZygpLnRvVXBwZXJDYXNlKCk9Ciwg
dmFsdWUpOworICAgICAgICBTeXN0ZW0ub3V0LnByaW50bG4oY3R4LmdldENoaWxkKDApICsgIjog
IiArIHZhbHVlKTsKKyAgICB9CisKKyAgICAvKioKKyAgICAgKiB7QGluaGVyaXREb2N9CisgICAg
ICoKKyAgICAgKiA8cD5UaGUgZGVmYXVsdCBpbXBsZW1lbnRhdGlvbiBkb2VzIG5vdGhpbmcuPC9w
PgorICAgICAqLworICAgIEBPdmVycmlkZSBwdWJsaWMgdm9pZCBlbnRlck5lYmVucHJvYmVubnVt
bWVyKExhZlBhcnNlci5OZWJlbnByb2Jlbm51bW09CmVyQ29udGV4dCBjdHgpIHsKKyAgICAgICAg
U3RyaW5nIHZhbHVlID0zRCBjdHguZ2V0Q2hpbGQoMSkudG9TdHJpbmcoKTsKKyAgICAgICAgdmFs
dWUgPTNEIHZhbHVlLnJlcGxhY2VBbGwoIlwiIiwgIiIpOworICAgICAgICBpZiAoIXZhbHVlLm1h
dGNoZXMoTGFmRGF0YVR5cGVzLkM0KSkgeworICAgICAgICAgICAgUmVwb3J0SXRlbSBlcnIgPTNE
IG5ldyBSZXBvcnRJdGVtKCk7CisgICAgICAgICAgICBlcnIuc2V0S2V5KGN0eC5nZXRDaGlsZCgw
KS50b1N0cmluZygpKTsKKyAgICAgICAgICAgIGVyci5zZXRWYWx1ZSh2YWx1ZSk7CisgICAgICAg
ICAgICBlcnIuc2V0Q29kZSg2NzApOworICAgICAgICAgICAgY3VycmVudEVycm9ycy5hZGQoZXJy
KTs7CisgICAgICAgICAgICByZXR1cm47CisgICAgICAgIH0KKyAgICAgICAgaWYgKGN1cnJlbnRN
ZXNzdW5nID0zRD0zRCBudWxsKSB7CisgICAgICAgICAgICBjdXJyZW50TWVzc3VuZyA9M0QgZGF0
YS5uZXcgTWVzc3VuZygpOworICAgICAgICB9CisgICAgICAgIGN1cnJlbnRNZXNzdW5nLmFkZEF0
dHJpYnV0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ZSBkZWZhdWx0IGltcGxlbWVudGF0aW9uIGRvZXMgbm90aGluZy48L3A+CisgICAgICov
CisgICAgQE92ZXJyaWRlIHB1YmxpYyB2b2lkIGVudGVyTWVzc3Byb2dyYW1tX2xhbmQoTGFmUGFy
c2VyLk1lc3Nwcm9ncmFtbV9sYT0KbmRDb250ZXh0IGN0eCkgeworICAgICAgICBTdHJpbmcgdmFs
dWUgPTNEIGN0eC5nZXRDaGlsZCgxKS50b1N0cmluZygpOworICAgICAgICB2YWx1ZSA9M0QgdmFs
dWUucmVwbGFjZUFsbCgiXCIiLCAiIik7CisgICAgICAgIGlmICghdmFsdWUubWF0Y2hlcyhMYWZE
YXRhVHlwZXMuQzMpKSB7CisgICAgICAgICAgICBSZXBvcnRJdGVtIGVyciA9M0QgbmV3IFJlcG9y
dEl0ZW0oKTsKKyAgICAgICAgICAgIGVyci5zZXRLZXkoY3R4LmdldENoaWxkKDApLnRvU3RyaW5n
KCkpOworICAgICAgICAgICAgZXJyLnNldFZhbHVlKHZhbHVlKTsKKyAgICAgICAgICAgIGVyci5z
ZXRDb2RlKDY3MCk7CisgICAgICAgICAgICBjdXJyZW50RXJyb3JzLmFkZChlcnIpOzsKKyAgICAg
ICAgICAgIHJldHVybjsKKyAgICAgICAgfQorICAgICAgICBjdXJyZW50UHJvYmUuYWRkQXR0cmli
dXRlKGN0eC5nZXRDaGlsZCgwKS50b1N0cmluZygpLnRvVXBwZXJDYXNlKCk9CiwgdmFsdWUpOwor
ICAgICAgICBTeXN0ZW0ub3V0LnByaW50bG4oY3R4LmdldENoaWxkKDApICsgIjogIiArIHZhbHVl
KTsKKyAgICB9CisKKyAgICAvKioKKyAgICAgKiB7QGluaGVyaXREb2N9CisgICAgICoKKyAgICAg
KiA8cD5UaGUgZGVmYXVsdCBpbXBsZW1lbnRhdGlvbiBkb2VzIG5vdGhpbmcuPC9wPgorICAgICAq
LworICAgIEBPdmVycmlkZSBwdWJsaWMgdm9pZCBlbnRlclByb2JlbmFobWVp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HJpbmcoKSk7CisgICAgICAgICAgICBlcnIuc2V0VmFsdWUo
dmFsdWUpOworICAgICAgICAgICAgZXJyLnNldENvZGUoNjcwKTsKKyAgICAgICAgICAgIGN1cnJl
bnRFcnJvcnMuYWRkKGVycik7OworICAgICAgICAgICAgcmV0dXJuOworICAgICAgICB9CisgICAg
ICAgIGN1cnJlbnRQcm9iZS5hZGRBdHRyaWJ1dGUoY3R4LmdldENoaWxkKDApLnRvU3RyaW5nKCku
dG9VcHBlckNhc2UoKT0KLCB2YWx1ZSk7CisgICAgICAgIFN5c3RlbS5vdXQucHJpbnRsbihjdHgu
Z2V0Q2hpbGQoMCkgKyAiOiAiICsgdmFsdWUpOworICAgIH0KKworICAgIC8qKgorICAgICAqIHtA
aW5oZXJpdERvY30KKyAgICAgKgorICAgICAqIDxwPlRoZSBkZWZhdWx0IGltcGxlbWVudGF0aW9u
IGRvZXMgbm90aGluZy48L3A+CisgICAgICovCisgICAgQE92ZXJyaWRlIHB1YmxpYyB2b2lkIGVu
dGVyU29sbF9kYXR1bV91aHJ6ZWl0X2EoTGFmUGFyc2VyLlNvbGxfZGF0dW1fdT0KaHJ6ZWl0X2FD
b250ZXh0IGN0eCkgeworICAgICAgICBTdHJpbmcgZGF0ZSA9M0QgY3R4LmdldENoaWxkKDEpLnRv
U3RyaW5nKCk7CisgICAgICAgIGRhdGUgPTNEIGRhdGUucmVwbGFjZUFsbCgiXCIiLCAiIik7Cisg
ICAgICAgIGlmICghZGF0ZS5tYXRjaGVzKExhZkRhdGFUeXBlcy5EOCkpIHsKKyAgICAgICAgICAg
IFJlcG9ydEl0ZW0gZXJyID0zRCBuZXcgUmVwb3J0SXRlbSgpOworICAgICAgICAgICAgZXJyLnNl
dEtleShjdHguZ2V0Q2hpbGQoMCkudG9TdHJpbmcoKSk7CisgICAgICAgICAgICBlcnIuc2V0VmFs
dWUoZGF0ZSk7CisgICAgICAgICAgICBlcnIuc2V0Q29kZSg2NzApOworICAgICAgICAgICAgY3Vy
cmVudEVycm9ycy5hZGQoZXJyKTs7CisgICAgICAgICAgICByZXR1cm47CisgICAgICAgIH0KKyAg
ICAgICAgU3RyaW5nIHRpbWUgPTNEIGN0eC5nZXRDaGlsZCgzKS50b1N0cmluZygpOworICAgICAg
ICB0aW1lID0zRCB0aW1lLnJlcGxhY2VBbGwoIlwiIiwgIiIpOworICAgICAgICBpZiAoIXRpbWUu
bWF0Y2hlcyhMYWZEYXRhVHlwZXMuVDQpKSB7CisgICAgICAgICAgICBSZXBvcnRJdGVtIGVyciA9
M0QgbmV3IFJlcG9ydEl0ZW0oKTsKKyAgICAgICAgICAgIGVyci5zZXRLZXkoY3R4LmdldENoaWxk
KDApLnRvU3RyaW5nKCkpOworICAgICAgICAgICAgZXJyLnNldFZhbHVlKHRpbWUpOworICAgICAg
ICAgICAgZXJyLnNldENvZGUoNjcwKTsKKyAgICAgICAgICAgIGN1cnJlbnRFcnJvcnMuYWRkKGVy
cik7OworICAgICAgICAgICAgcmV0dXJuOworICAgICAgICB9CisgICAgICAgIGN1cnJlbnRQcm9i
ZS5hZGRBdHRyaWJ1dGUoY3R4LmdldENoaWxkKDApLnRvU3RyaW5nKCkudG9VcHBlckNhc2UoKT0K
LCBkYXRlICsgJyAnICsgdGltZSk7CisgICAgICAgIFN5c3RlbS5vdXQucHJpbnRsbihjdHguZ2V0
Q2hpbGQoMCkgKyAiOiAiICsgZGF0ZSArICcgJyArIHRpbWUpOworICAgIH0KKworICAgIC8qKgor
ICAgICAqIHtAaW5oZXJpdERvY30KKyAgICAgKgorICAgICAqIDxwPlRoZSBkZWZhdWx0IGltcGxl
bWVudGF0aW9uIGRvZXMgbm90aGluZy48L3A+CisgICAgICovCisgICAgQE92ZXJyaWRlIHB1Ymxp
YyB2b2lkIGVudGVyU29sbF9kYXR1bV91aHJ6ZWl0X2UoTGFmUGFyc2VyLlNvbGxfZGF0dW1fdT0K
aHJ6ZWl0X2VDb250ZXh0IGN0eCkgeworICAgICAgICBTdHJpbmcgZGF0ZSA9M0QgY3R4LmdldENo
aWxkKDEpLnRvU3RyaW5nKCk7CisgICAgICAgIGRhdGUgPTNEIGRhdGUucmVwbGFjZUFsbCgiXCIi
LCAiIik7CisgICAgICAgIGlmICghZGF0ZS5tYXRjaGVzKExhZkRhdGFUeXBlcy5EOCkpIHsKKyAg
ICAgICAgICAgIFJlcG9ydEl0ZW0gZXJyID0zRCBuZXcgUmVwb3J0SXRlbSgpOworICAgICAgICAg
ICAgZXJyLnNldEtleShjdHguZ2V0Q2hpbGQoMCkudG9TdHJpbmcoKSk7CisgICAgICAgICAgICBl
cnIuc2V0VmFsdWUoZGF0ZSk7CisgICAgICAgICAgICBlcnIuc2V0Q29kZSg2NzApOworICAgICAg
ICAgICAgY3VycmVudEVycm9ycy5hZGQoZXJyKTs7CisgICAgICAgICAgICByZXR1cm47CisgICAg
ICAgIH0KKyAgICAgICAgU3RyaW5nIHRpbWUgPTNEIGN0eC5nZXRDaGlsZCgzKS50b1N0cmluZygp
OworICAgICAgICB0aW1lID0zRCB0aW1lLnJlcGxhY2VBbGwoIlwiIiwgIiIpOworICAgICAgICBp
ZiAoIXRpbWUubWF0Y2hlcyhMYWZEYXRhVHlwZXMuVDQpKSB7CisgICAgICAgICAgICBSZXBvcnRJ
dGVtIGVyciA9M0QgbmV3IFJlcG9ydEl0ZW0oKTsKKyAgICAgICAgICAgIGVyci5zZXRLZXkoY3R4
LmdldENoaWxkKDApLnRvU3RyaW5nKCkpOworICAgICAgICAgICAgZXJyLnNldFZhbHVlKHRpbWUp
OworICAgICAgICAgICAgZXJyLnNldENvZGUoNjcwKTsKKyAgICAgICAgICAgIGN1cnJlbnRFcnJv
cnMuYWRkKGVycik7OworICAgICAgICAgICAgcmV0dXJuOworICAgICAgICB9CisgICAgICAgIGN1
cnJlbnRQcm9iZS5hZGRBdHRyaWJ1dGUoY3R4LmdldENoaWxkKDApLnRvU3RyaW5nKCkudG9VcHBl
ckNhc2UoKT0KLCBkYXRlICsgJyAnICsgdGltZSk7CisgICAgICAgIFN5c3RlbS5vdXQucHJpbnRs
bihjdHguZ2V0Q2hpbGQoMCkgKyAiOiAiICsgZGF0ZSArICcgJyArIHRpbWUpOworICAgIH0KKwor
ICAgIC8qKgorICAgICAqIHtAaW5oZXJpdERvY30KKyAgICAgKgorICAgICAqIDxwPlRoZSBkZWZh
dWx0IGltcGxlbWVudGF0aW9uIGRvZXMgbm90aGluZy48L3A+CisgICAgICovCisgICAgQE92ZXJy
aWRlIHB1YmxpYyB2b2lkIGVudGVyVXJzcHJ1bmdzX2RhdHVtX3VocnplaXQoTGFmUGFyc2VyLlVy
c3BydW5ncz0KX2RhdHVtX3VocnplaXRDb250ZXh0IGN0eCkgeworICAgICAgICBTdHJpbmcgZGF0
ZSA9M0QgY3R4LmdldENoaWxkKDEpLnRvU3RyaW5nKCk7CisgICAgICAgIGRhdGUgPTNEIGRhdGUu
cmVwbGFjZUFsbCgiXCIiLCAiIik7CisgICAgICAgIGlmICghZGF0ZS5tYXRjaGVzKExhZkRhdGFU
eXBlcy5EOCkpIHsKKyAgICAgICAgICAgIFJlcG9ydEl0ZW0gZXJyID0zRCBuZXcgUmVwb3J0SXRl
bSgpOworICAgICAgICAgICAgZXJyLnNldEtleShjdHguZ2V0Q2hpbGQoMCkudG9TdHJpbmcoKSk7
CisgICAgICAgICAgICBlcnIuc2V0VmFsdWUoZGF0ZSk7CisgICAgICAgICAgICBlcnIuc2V0Q29k
ZSg2NzApOworICAgICAgICAgICAgY3VycmVudEVycm9ycy5hZGQoZXJyKTs7CisgICAgICAgICAg
ICByZXR1cm47CisgICAgICAgIH0KKyAgICAgICAgU3RyaW5nIHRpbWUgPTNEIGN0eC5nZXRDaGls
ZCgzKS50b1N0cmluZygpOworICAgICAgICB0aW1lID0zRCB0aW1lLnJlcGxhY2VBbGwoIlwiIiwg
IiIpOworICAgICAgICBpZiAoIXRpbWUubWF0Y2hlcyhMYWZEYXRhVHlwZXMuVDQpKSB7CisgICAg
ICAgICAgICBSZXBvcnRJd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jdHguZ2V0
Q2hpbGQoMCkudG9TdHJpbmcoKSk7CisgICAgICAgICAgICBlcnIuc2V0VmFsdWUoZGF0ZSk7Cisg
ICAgICAgICAgICBlcnIuc2V0Q29kZSg2NzApOworICAgICAgICAgICAgY3VycmVudEVycm9ycy5h
ZGQoZXJyKTs7CisgICAgICAgICAgICByZXR1cm47CisgICAgICAgIH0KKyAgICAgICAgU3RyaW5n
IHRpbWUgPTNEIGN0eC5nZXRDaGlsZCgzKS50b1N0cmluZygpOworICAgICAgICB0aW1lID0zRCB0
aW1lLnJlcGxhY2VBbGwoIlwiIiwgIiIpOworICAgICAgICBpZiAoIXRpbWUubWF0Y2hlcyhMYWZE
YXRhVHlwZXMuVDQpKSB7CisgICAgICAgICAgICBSZXBvcnRJdGVtIGVyciA9M0QgbmV3IFJlcG9y
dEl0ZW0oKTsKKyAgICAgICAgICAgIGVyci5zZXRLZXkoY3R4LmdldENoaWxkKDApLnRvU3RyaW5n
KCkpOworICAgICAgICAgICAgZXJyLnNldFZhbHVlKHRpbWUpOworICAgICAgICAgICAgZXJyLnNl
dENvZGUoNjcwKTsKKyAgICAgICAgICAgIGN1cnJlbnRFcnJvcnMuYWRkKGVycik7OworICAgICAg
ICAgICAgcmV0dXJuOworICAgICAgICB9CisgICAgICAgIGN1cnJlbnRQcm9iZS5hZGRBdHRyaWJ1
dGUoY3R4LmdldENoaWxkKDApLnRvU3RyaW5nKCkudG9VcHBlckNhc2UoKT0KLCBkYXRlICsgJyAn
ICsgdGltZSk7CisgICAgICAgIFN5c3RlbS5vdXQucHJpbnRsbihjdHguZ2V0Q2hpbGQoMCkgKyAi
OiAiICsgZGF0ZSArICcgJyArIHRpbWUpOworICAgIH0KKworICAgIC8qKgorICAgICAqIHtAaW5o
ZXJpdERvY30KKyAgICAgKgorICAgICAqIDxwPlRoZSBkZWZhdWx0IGltcGxlbWVudGF0aW9uIGRv
ZXMgbm90aGluZy48L3A+CisgICAgICovCisgICAgQE92ZXJyaWRlIHB1YmxpYyB2b2lkIGVudGVy
UHJvYmVuYWhtZV9kYXR1bV91aHJ6ZWl0X2UoTGFmUGFyc2VyLlByb2Jlbj0KYWhtZV9kYXR1bV91
aHJ6ZWl0X2VDb250ZXh0IGN0eCkgeworICAgICAgICBTdHJpbmcgZGF0ZSA9M0QgY3R4LmdldENo
aWxkKDEpLnRvU3RyaW5nKCk7CisgICAgICAgIGRhdGUgPTNEIGRhdGUucmVwbGFjZUFsbCgiXCIi
LCAiIik7CisgICAgICAgIGlmICghZGF0ZS5tYXRjaGVzKExhZkRhdGFUeXBlcy5EOCkpIHsKKyAg
ICAgICAgICAgIFJlcG9ydEl0ZW0gZXJyID0zRCBuZXcgUmVwb3J0SXRlbSgpOworICAgICAgICAg
ICAgZXJyLnNldEtleShjdHguZ2V0Q2hpbGQoMCkudG9TdHJpbmcoKSk7CisgICAgICAgICAgICBl
cnIuc2V0VmFsdWUoZGF0ZSk7CisgICAgICAgICAgICBlcnIuc2V0Q29kZSg2NzApOworICAgICAg
ICAgICAgY3VycmVudEVycm9ycy5hZGQoZXJyKTs7CisgICAgICAgICAgICByZXR1cm47CisgICAg
ICAgIH0KKyAgICAgICAgU3RyaW5nIHRpbWUgPTNEIGN0eC5nZXRDaGlsZCgzKS50b1N0cmluZygp
OworICAgICAgICB0aW1lID0zRCB0aW1lLnJlcGxhY2VBbGwoIlwiIiwgIiIpOworICAgICAgICBp
ZiAoIXRpbWUubWF0Y2hlcyhMYWZEYXRhVHlwZXMuVDQpKSB7CisgICAgICAgICAgICBSZXBvcnRJ
dGVtIGVyciA9M0QgbmV3IFJlcG9ydEl0ZW0oKTsKKyAgICAgICAgICAgIGVyci5zZXRLZXkoY3R4
LmdldENoaWxkKDApLnRvU3RyaW5nKCkpOworICAgICAgICAgICAgZXJyLnNldFZhbHVlKHRpbWUp
OworICAgICAgICAgICAgZXJyLnNldENvZGUoNjcwKTsKKyAgICAgICAgICAgIGN1cnJlbnRFcnJv
cnMuYWRkKGVycik7OworICAgICAgICAg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gxKS50b1N0cmluZygpOworICAgICAgICBkYXRlID0zRCBkYXRlLnJlcGxhY2VBbGwo
IlwiIiwgIiIpOworICAgICAgICBpZiAoIWRhdGUubWF0Y2hlcyhMYWZEYXRhVHlwZXMuRDgpKSB7
CisgICAgICAgICAgICBSZXBvcnRJdGVtIGVyciA9M0QgbmV3IFJlcG9ydEl0ZW0oKTsKKyAgICAg
ICAgICAgIGVyci5zZXRLZXkoY3R4LmdldENoaWxkKDApLnRvU3RyaW5nKCkpOworICAgICAgICAg
ICAgZXJyLnNldFZhbHVlKGRhdGUpOworICAgICAgICAgICAgZXJyLnNldENvZGUoNjcwKTsKKyAg
ICAgICAgICAgIGN1cnJlbnRFcnJvcnMuYWRkKGVycik7OworICAgICAgICAgICAgcmV0dXJuOwor
ICAgICAgICB9CisgICAgICAgIFN0cmluZyB0aW1lID0zRCBjdHguZ2V0Q2hpbGQoMykudG9TdHJp
bmcoKTsKKyAgICAgICAgdGltZSA9M0QgdGltZS5yZXBsYWNlQWxsKCJcIiIsICIiKTsKKyAgICAg
ICAgaWYgKCF0aW1lLm1hdGNoZXMoTGFmRGF0YVR5cGVzLlQ0KSkgeworICAgICAgICAgICAgUmVw
b3J0SXRlbSBlcnIgPTNEIG5ldyBSZXBvcnRJdGVtKCk7CisgICAgICAgICAgICBlcnIuc2V0S2V5
KGN0eC5nZXRDaGlsZCgwKS50b1N0cmluZygpKTsKKyAgICAgICAgICAgIGVyci5zZXRWYWx1ZSh0
aW1lKTsKKyAgICAgICAgICAgIGVyci5zZXRDb2RlKDY3MCk7CisgICAgICAgICAgICBjdXJyZW50
RXJyb3JzLmFkZChlcnIpOzsKKyAgICAgICAgICAgIHJldHVybjsKKyAgICAgICAgfQorICAgICAg
ICBjdXJyZW50UHJvYmUuYWRkQXR0cmlidXRlKGN0eC5nZXRDaGlsZCgwKS50b1N0cmluZygpLnRv
VXBwZXJDYXNlKCk9CiwgZGF0ZSArICcgJyArIHRpbWUpOworICAgICAgICBTeXN0ZW0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5DNSkpIHsKKyAgICAgICAgICAgIFJlcG9ydEl0ZW0g
ZXJyID0zRCBuZXcgUmVwb3J0SXRlbSgpOworICAgICAgICAgICAgZXJyLnNldEtleShjdHguZ2V0
Q2hpbGQoMCkudG9TdHJpbmcoKSk7CisgICAgICAgICAgICBlcnIuc2V0VmFsdWUodmFsdWUpOwor
ICAgICAgICAgICAgZXJyLnNldENvZGUoNjcwKTsKKyAgICAgICAgICAgIGN1cnJlbnRFcnJvcnMu
YWRkKGVycik7OworICAgICAgICAgICAgcmV0dXJuOworICAgICAgICB9CisgICAgICAgIC8vIFRP
RE86IEFkZCB0byAidXJzcHJ1bmdzb3J0IgorICAgICAgICAvL2N1cnJlbnRQcm9iZS5hZGRBdHRy
aWJ1dGUoY3R4LmdldENoaWxkKDApLnRvU3RyaW5nKCkudG9VcHBlckNhc2U9CigpLCB2YWx1ZSk7
CisgICAgICAgIFN5c3RlbS5vdXQucHJpbnRsbihjdHguZ2V0Q2hpbGQoMCkgKyAiOiAiICsgdmFs
dWUpOworICAgIH0KKworICAgIC8qKgorICAgICAqIHtAaW5oZXJpdERvY30KKyAgICAgKgorICAg
ICAqIDxwPlRoZSBkZWZhdWx0IGltcGxlbWVudGF0aW9uIGRvZXMgbm90aGluZy48L3A+CisgICAg
ICovCisgICAgQE92ZXJyaWRlIHB1YmxpYyB2b2lkIGVudGVyVV9oZXJrdW5mdHNsYW5kX3MoTGFm
UGFyc2VyLlVfaGVya3VuZnRzbGFuZD0KX3NDb250ZXh0IGN0eCkgeworICAgICAgICBTdHJpbmcg
dmFsdWUgPTNEIGN0eC5nZXRDaGlsZCgxKS50b1N0cmluZygpOworICAgICAgICB2YWx1ZSA9M0Qg
dmFsdWUucmVwbGFjZUFsbCgiXCIiLCAiIik7CisgICAgICAgIGlmICghdmFsdWUubWF0Y2hlcyhM
YWZEYXRhVHlwZXMuU0k4KSkgeworICAgICAgICAgICAgUmVwb3J0SXRlbSBlcnIgPTNEIG5ldyBS
ZXBvcnRJdG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pbGQoMCkudG9TdHJpbmcoKSk7
CisgICAgICAgICAgICBlcnIuc2V0VmFsdWUodmFsdWUpOworICAgICAgICAgICAgZXJyLnNldENv
ZGUoNjcwKTsKKyAgICAgICAgICAgIGN1cnJlbnRFcnJvcnMuYWRkKGVycik7OworICAgICAgICAg
ICAgcmV0dXJuOworICAgICAgICB9CisgICAgICAgIC8vIFRPRE86IEFkZCB0byAidXJzcHJ1bmdz
b3J0IgorICAgICAgICAvL2N1cnJlbnRQcm9iZS5hZGRBdHRyaWJ1dGUoY3R4LmdldENoaWxkKDAp
LnRvU3RyaW5nKCkudG9VcHBlckNhc2U9CigpLCB2YWx1ZSk7CisgICAgICAgIFN5c3RlbS5vdXQu
cHJpbnRsbihjdHguZ2V0Q2hpbGQoMCkgKyAiOiAiICsgdmFsdWUpOworICAgIH0KKworICAgIC8q
KgorICAgICAqIHtAaW5oZXJpdERvY30KKyAgICAgKgorICAgICAqIDxwPlRoZSBkZWZhdWx0IGlt
cGxlbWVudGF0aW9uIGRvZXMgbm90aGluZy48L3A+CisgICAgICovCisgICAgQE92ZXJyaWRlIHB1
YmxpYyB2b2lkIGVudGVyVV9nZW1laW5kZW5hbWUoTGFmUGFyc2VyLlVfZ2VtZWluZGVuYW1lQ29u
dD0KZXh0IGN0eCkgeworICAgICAgICBTdHJpbmcgdmFsdWUgPTNEIGN0eC5nZXRDaGlsZCgxKS50
b1N0cmluZygpOworICAgICAgICB2YWx1ZSA9M0QgdmFsdWUucmVwbGFjZUFsbCgiXCIiLCAiIik7
CisgICAgICAgIGlmICghdmFsdWUubWF0Y2hlcyhMYWZEYXRhVHlwZXMuQ19TVEFSKSkgeworICAg
ICAgICAgICAgUmVwb3J0SXRlbSBlcnIgPTNEIG5ldyBSZXBvcnRJdGVtKCk7CisgICAgICAgICAg
ICBlcnIuc2V0S2V5KGN0eC5nZXRDaGlsZCgwKS50b1N0cmluZygpKTsKKyAgICAgICAgICAgIGVy
ci5zZXRWYWx1ZSh2YWx1ZSk7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ICAgICAgfQorICAgICAgICBTdHJpbmcga29vcmQxID0zRCBj
dHguZ2V0Q2hpbGQoMykudG9TdHJpbmcoKTsKKyAgICAgICAga29vcmQxID0zRCBrb29yZDEucmVw
bGFjZUFsbCgiXCIiLCAiIik7CisgICAgICAgIGlmICgha29vcmQxLm1hdGNoZXMoTGFmRGF0YVR5
cGVzLkMyMikpIHsKKyAgICAgICAgICAgIFJlcG9ydEl0ZW0gZXJyID0zRCBuZXcgUmVwb3J0SXRl
bSgpOworICAgICAgICAgICAgZXJyLnNldEtleShjdHguZ2V0Q2hpbGQoMCkudG9TdHJpbmcoKSk7
CisgICAgICAgICAgICBlcnIuc2V0VmFsdWUoa29vcmQxKTsKKyAgICAgICAgICAgIGVyci5zZXRD
b2RlKDY3MCk7CisgICAgICAgICAgICBjdXJyZW50RXJyb3JzLmFkZChlcnIpOzsKKyAgICAgICAg
ICAgIHJldHVybjsKKyAgICAgICAgfQorICAgICAgICBTdHJpbmcga29vcmQyID0zRCBjdHguZ2V0
Q2hpbGQoNSkudG9TdHJpbmcoKTsKKyAgICAgICAga29vcmQyID0zRCBrb29yZDIucmVwbGFjZUFs
bCgiXCIiLCAiIik7CisgICAgICAgIGlmICgha29vcmQyLm1hdGNoZXMoTGFmRGF0YVR5cGVzLkMy
MikpIHsKKyAgICAgICAgICAgIFJlcG9ydEl0ZW0gZXJyID0zRCBuZXcgUmVwb3J0SXRlbSgpOwor
ICAgICAgICAgICAgZXJyLnNldEtleShjdHguZ2V0Q2hpbGQoMCkudG9TdHJpbmcoKSk7CisgICAg
ICAgICAgICBlcnIuc2V0VmFsdWUoa29vcmQyKTsKKyAgICAgICAgICAgIGVyci5zZXRDb2RlKDY3
MCk7CisgICAgICAgICAgICBjdXJyZW50RXJyb3JzLmFkZChlcnIpOzsKKyAgICAgICAgICAgIHJl
dHVybjsKKyAgICAgICAgfQorICAgICAgICAvLyBUT0RPOiBBZGQgdG8gInVyc3BydW5nc29ydCIK
KyAgICAgICAgLy9jdXJyZW50UHJvYmUuYWRkQXR0cmlidXRlKGN0eC5nZXRDaGlsZCgwKS50b1N0
cmluZygpLnRvVXBwZXJDYXNlPQooKSwgdmFsdWUpOworICAgICAgICBTeXN0ZW0ub3V0LnByaW50
bG4oY3R4LmdldENoaWxkKDApICsgIjogIiArIGFydCArICIgIiArIGtvb3JkMSArICI9CiAiICsg
a29vcmQyKTsKKyAgICB9CisKKyAgICAvKioKKyAgICAgKiB7QGluaGVyaXREb2N9CisgICAgICoK
KyAgICAgKiA8cD5UaGUgZGVmYXVsdCBpbXBsZW1lbnRhdGlvbiBkb2VzIG5vdGhpbmcuPC9wPgor
ICAgICAqLworICAgIEBPdmVycmlkZSBwdWJsaWMgdm9pZCBlbnRlclVfa29vcmRpbmF0ZW5fcyhM
YWZQYXJzZXIuVV9rb29yZGluYXRlbl9zQ289Cm50ZXh0IGN0eCkgeworICAgICAgICBTdHJpbmcg
YXJ0ID0zRCBjdHguZ2V0Q2hpbGQoMSkudG9TdHJpbmcoKTsKKyAgICAgICAgYXJ0ID0zRCBhcnQu
cmVwbGFjZUFsbCgiXCIiLCAiIik7CisgICAgICAgIGlmICghYXJ0Lm1hdGNoZXMoTGFmRGF0YVR5
cGVzLlNJMikpIHsKKyAgICAgICAgICAgIFJlcG9ydEl0ZW0gZXJyID0zRCBuZXcgUmVwb3J0SXRl
bSgpOworICAgICAgICAgICAgZXJyLnNldEtleShjdHguZ2V0Q2hpbGQoMCkudG9TdHJpbmcoKSk7
CisgICAgICAgICAgICBlcnIuc2V0VmFsdWUoYXJ0KTsKKyAgICAgICAgICAgIGVyci5zZXRDb2Rl
KDY3MCk7CisgICAgICAgICAgICBjdXJyZW50RXJyb3JzLmFkZChlcnIpOzsKKyAgICAgICAgICAg
IHJldHVybjsKKyAgICAgICAgfQorICAgICAgICBTdHJpbmcga29vcmQxID0zRCBjdHguZ2V0Q2hp
bGQoMykudG9TdHJpbmcoKTsKKyAgICAgICAga29vcmQxID0zRCBrb29yZDEucmVwbGFjZUFsbCgi
XCIiLCAiIik7CisgICAgICAgIGlmICgha29vcmQxLm1hdGNoZXMoTGFmRGF0YVR5cGVzLkMyMikp
IHsKKyAgICAgICAgICAgIFJlcG9ydEl0ZW0gZXJyID0zRCBuZXcgUmVwb3J0SXRlbSgpOworICAg
ICAgICAgICAgZXJyLnNldEtleShjdHguZ2V0Q2hpbGQoMCkudG9TdHJpbmcoKSk7CisgICAgICAg
ICAgICBlcnIuc2V0VmFsdWUoa29vcmQxKTsKKyAgICAgICAgICAgIGVyci5zZXRDb2RlKDY3MCk7
CisgICAgICAgICAgICBjdXJyZW50RXJyb3JzLmFkZChlcnIpOzsKKyAgICAgICAgICAgIHJldHVy
bjsKKyAgICAgICAgfQorICAgICAgICBTdHJpbmcga29vcmQyID0zRCBjdHguZ2V0Q2hpbGQoNSku
dG9TdHJpbmcoKTsKKyAgICAgICAga29vcmQyID0zRCBrb29yZDIucmVwbGFjZUFsbCgiXCIiLCAi
Iik7CisgICAgICAgIGlmICgha29vcmQyLm1hdGNoZXMoTGFmRGF0YVR5cGVzLkMyMikpIHsKKyAg
ICAgICAgICAgIFJlcG9ydEl0ZW0gZXJyID0zRCBuZXcgUmVwb3J0SXRlbSgpOworICAgICAgICAg
ICAgZXJyLnNldEtleShjdHguZ2V0Q2hpbGQoMCkudG9TdHJpbmcoKSk7CisgICAgICAgICAgICBl
cnIuc2V0VmFsdWUoa29vcmQyKTsKKyAgICAgICAgICAgIGVyci5zZXRDb2RlKDY3MCk7CisgICAg
ICAgICAgICBjdXJyZW50RXJyb3JzLmFkZChlcnIpOzsKKyAgICAgICAgICAgIHJldHVybjsKKyAg
ICAgICAgfQorICAgICAgICAvLyBUT0RPOiBBZGQgdG8gInVyc3BydW5nc29ydCIKKyAgICAgICAg
Ly9jdXJyZW50UHJvYmUuYWRkQXR0cmlidXRlKGN0eC5nZXRDaGlsZCgwKS50b1N0cmluZygpLnRv
VXBwZXJDYXNlPQooKSwgdmFsdWUpOworICAgICAgICBTeXN0ZW0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uYW1lQ29udD0KZXh0IGN0eCkgewor
ICAgICAgICBTdHJpbmcgdmFsdWUgPTNEIGN0eC5nZXRDaGlsZCgxKS50b1N0cmluZygpOworICAg
ICAgICB2YWx1ZSA9M0QgdmFsdWUucmVwbGFjZUFsbCgiXCIiLCAiIik7CisgICAgICAgIGlmICgh
dmFsdWUubWF0Y2hlcyhMYWZEYXRhVHlwZXMuQ19TVEFSKSkgeworICAgICAgICAgICAgUmVwb3J0
SXRlbSBlcnIgPTNEIG5ldyBSZXBvcnRJdGVtKCk7CisgICAgICAgICAgICBlcnIuc2V0S2V5KGN0
eC5nZXRDaGlsZCgwKS50b1N0cmluZygpKTsKKyAgICAgICAgICAgIGVyci5zZXRWYWx1ZSh2YWx1
ZSk7CisgICAgICAgICAgICBlcnIuc2V0Q29kZSg2NzApOworICAgICAgICAgICAgY3VycmVudEVy
cm9ycy5hZGQoZXJyKTs7CisgICAgICAgICAgICByZXR1cm47CisgICAgICAgIH0KKyAgICAgICAg
Ly8gVE9ETzogQWRkIHRvICJlbnRuYWhtZW9ydCIKKyAgICAgICAgLy9jdXJyZW50UHJvYmUuYWRk
QXR0cmlidXRlKGN0eC5nZXRDaGlsZCgwKS50b1N0cmluZygpLnRvVXBwZXJDYXNlPQooKSwgdmFs
dWUpOworICAgICAgICBTeXN0ZW0ub3V0LnByaW50bG4oY3R4LmdldENoaWxkKDApICsgIjogIiAr
IHZhbHVlKTsKKyAgICB9CisKKyAgICAvKioKKyAgICAgKiB7QGluaGVyaXREb2N9CisgICAgICoK
KyAgICAgKiA8cD5UaGUgZGVmYXVsdCBpbXBsZW1lbnRhdGlvbiBkb2VzIG5vdGhpbmcuPC9wPgor
ICAgICAqLworICAgIEBPdmVycmlkZSBwdWJsaWMgdm9pZCBlbnRlclBfb3J0c196dXNhdHprZW5u
emFobChMYWZQYXJzZXIuUF9vcnRzX3p1c2E9CnR6a2VubnphaGxDb250ZXh0IGN0eCkgeworICAg
ICAgICBTdHJpbmcgdmFsdWUgPTNEIGN0eC5nZXRDaGlsZCgxKS50b1N0cmluZygpOworICAgICAg
ICB2YWx1ZSA9M0QgdmFsdWUucmVwbGFjZUFsbCgiXCIiLCAiIik7CisgICAgICAgIGlmICghdmFs
dWUubWF0Y2hlcyhMYWZEYXRhVHlwZXMuSTMpKSB7CisgICAgICAgICAgICBSZXBvcnRJdGVtIGVy
ciA9M0QgbmV3IFJlcG9ydEl0ZW0oKTsKKyAgICAgICAgICAgIGVyci5zZXRLZXkoY3R4LmdldENo
aWxkKDApLnRvU3RyaW5nKCkpOworICAgICAgICAgICAgZXJyLnNldFZhbHVlKHZhbHVlKTsKKyAg
ICAgICAgICAgIGVyci5zZXRDb2RlKDY3MCk7CisgICAgICAgICAgICBjdXJyZW50RXJyb3JzLmFk
ZChlcnIpOzsKKyAgICAgICAgICAgIHJldHVybjsKKyAgICAgICAgfQorICAgICAgICAvLyBUT0RP
OiBBZGQgdG8gImVudG5haG1lb3J0IgorICAgICAgICAvL2N1cnJlbnRQcm9iZS5hZGRBdHRyaWJ1
dGUoY3R4LmdldENoaWxkKDApLnRvU3RyaW5nKCkudG9VcHBlckNhc2U9CigpLCB2YWx1ZSk7Cisg
ICAgICAgIFN5c3RlbS5vdXQucHJpbnRsbihjdHguZ2V0Q2hpbGQoMCkgKyAiOiAiICsgdmFsdWUp
OworICAgIH0KKworICAgIC8qKgorICAgICAqIHtAaW5oZXJpdERvY30KKyAgICAgKgorICAgICAq
IDxwPlRoZSBkZWZhdWx0IGltcGxlbWVudGF0aW9uIGRvZXMgbm90aGluZy48L3A+CisgICAgICov
CisgICAgQE92ZXJyaWRlIHB1YmxpYyB2b2lkIGVudGVyUF9rb29yZGluYXRlbihMYWZQYXJzZXIu
UF9rb29yZGluYXRlbkNvbnRleD0KdCBjdHgpIHsKKyAgICAgICAgU3RyaW5nIGFydCA9M0QgY3R4
LmdldENoaWxkKDEpLnRvU3RyaW5nKCk7CisgICAgICAgIGFydCA9M0QgYXJ0LnJlcGxhY2VBbGwo
IlwiIiwgIiIpOworICAgICAgICBpZiAoIWFydC5tYXRjaGVzKExhZkRhdGFUeXBlcy5DX1NUQVIp
KSB7CisgICAgICAgICAgICBSZXBvcnRJdGVtIGVyciA9M0QgbmV3IFJlcG9ydEl0ZW0oKTsKKyAg
ICAgICAgICAgIGVyci5zZXRLZXkoY3R4LmdldENoaWxkKDApLnRvU3RyaW5nKCkpOworICAgICAg
ICAgICAgZXJyLnNldFZhbHVlKGFydCk7CisgICAgICAgICAgICBlcnIuc2V0Q29kZSg2NzApOwor
ICAgICAgICAgICAgY3VycmVudEVycm9ycy5hZGQoZXJyKTs7CisgICAgICAgICAgICByZXR1cm47
CisgICAgICAgIH0KKyAgICAgICAgU3RyaW5nIGtvb3JkMSA9M0QgY3R4LmdldENoaWxkKDMpLnRv
U3RyaW5nKCk7CisgICAgICAgIGtvb3JkMSA9M0Qga29vcmQxLnJlcGxhY2VBbGwoIlwiIiwgIiIp
OworICAgICAgICBpZiAoIWtvb3JkMS5tYXRjaGVzKExhZkRhdGFUeXBlcy5DMjIpKSB7CisgICAg
ICAgICAgICBSZXBvcnRJdGVtIGVyciA9M0QgbmV3IFJlcG9ydEl0ZW0oKTsKKyAgICAgICAgICAg
IGVyci5zZXRLZXkoY3R4LmdldENoaWxkKDApLnRvU3RyaW5nKCkpOworICAgICAgICAgICAgZXJy
LnNldFZhbHVlKGtvb3JkMSk7CisgICAgICAgICAgICBlcnIuc2V0Q29kZSg2NzApOworICAgICAg
ICAgICAgY3VycmVudEVycm9ycy5hZGQoZXJyKTs7CisgICAgICAgICAgICByZXR1cm47CisgICAg
ICAgIH0KKyAgICAgICAgU3RyaW5nIGtvb3JkMiA9M0QgY3R4LmdldENoaWxkKDUpLnRvU3RyaW5n
KCk7CisgICAgICAgIGtvb3JkMiA9M0Qga29vcmQyLnJlcGxhY2VBbGwoIlwiIiwgIiIpOworICAg
ICAgICBpZiAoIWtvb3JkMi5tYXRjaGVzKExhZkRhdGFUeXBlcy5DMjIpKSB7CisgICAgICAgICAg
ICBSZXBvcnRJdGVtIGVyciA9M0QgbmV3IFJlcG9ydEl0ZW0oKTsKKyAgICAgICAgICAgIGVyci5z
ZXRLZXkoY3R4LmdldENoaWxkKDApLnRvU3RyaW5nKCkpOworICAgICAgICAgICAgZXJyLnNldFZh
bHVlKGtvb3JkMik7CisgICAgICAgICAgICBlcnIuc2V0Q29kZSg2NzApOworICAgICAgICAgICAg
Y3VycmVudEVycm9ycy5hZGQoZXJyKTs7CisgICAgICAgICAgICByZXR1cm47CisgICAgICAgIH0K
KyAgICAgICAgLy8gVE9ETzogQWRkIHRvICJlbnRuYWhtZW9ydCIKKyAgICAgICAgLy9jdXJyZW50
UHJvYmUuYWRkQXR0cmlidXRlKGN0eC5nZXRDaGlsZCgwKS50b1N0cmluZygpLnRvVXBwZXJDYXNl
PQooKSwgdmFsdWUpOworICAgICAgICBTeXN0ZW0ub3V0LnByaW50bG4oY3R4LmdldENoaWxkKDAp
ICsgIjogIiArIGFydCArICIgIiArIGtvb3JkMSArICI9CiAiICsga29vcmQyKTsKKyAgICB9CisK
KyAgICAvKioKKyAgICAgKiB7QGluaGVyaXREb2N9CisgICAgICoKKyAgICAgKiA8cD5UaGUgZGVm
YXVsdCBpbXBsZW1lbnRhdGlvbiBkb2VzIG5vdGhpbmcuPC9wPgorICAgICAqLworICAgIEBPdmVy
cmlkZSBwdWJsaWMgdm9pZCBlbnRlclBfa29vcmRpbmF0ZW5fcyhMYWZQYXJzZXIuUF9rb29yZGlu
YXRlbl9zQ289Cm50ZXh0IGN0eCkgeworICAgICAgICBTdHJpbmcgYXJ0ID0zRCBjdHguZ2V0Q2hp
bGQoMSkudG9TdHJpbmcoKTsKKyAgICAgICAgYXJ0ID0zRCBhcnQucmVwbGFjZUFsbCgiXCIiLCAi
Iik7CisgICAgICAgIGlmICghYXJ0Lm1hdGNoZXMoTGFmRGF0YVR5cGVzLlNJMikpIHsKKyAgICAg
ICAgICAgIFJlcG9ydEl0ZW0gZXJyID0zRCBuZXcgUmVwb3J0SXRlbSgpOworICAgICAgICAgICAg
ZXJyLnNldEtleShjdHguZ2V0Q2hpbGQoMCkudG9TdHJpbmcoKSk7CisgICAgICAgICAgICBlcnIu
c2V0VmFsdWUoYXJ0KTsKKyAgICAgICAgICAgIGVyci5zZXRDb2RlKDY3MCk7CisgICAgICAgICAg
ICBjdXJyZW50RXJyb3JzLmFkZChlcnIpOzsKKyAgICAgICAgICAgIHJldHVybjsKKyAgICAgICAg
fQorICAgICAgICBTdHJpbmcga29vcmQxID0zRCBjdHguZ2V0Q2hpbGQoMykudG9TdHJpbmcoKTsK
KyAgICAgICAga29vcmQxID0zRCBrb29yZDEucmVwbGFjZUFsbCgiXCIiLCAiIik7CisgICAgICAg
IGlmICgha29vcmQxLm1hdGNoZXMoTGFmRGF0YVR5cGVzLkMyMikpIHsKKyAgICAgICAgICAgIFJl
cG9ydEl0ZW0gZXJyID0zRCBuZXcgUmVwb3J0SXRlbSgpOworICAgICAgICAgICAgZXJyLnNldEtl
eShjdHguZ2V0Q2hpbGQoMCkudG9TdHJpbmcoKSk7CisgICAgICAgICAgICBlcnIuc2V0VmFsdWUo
a29vcmQxKTsKKyAgICAgICAgICAgIGVyci5zZXRDb2RlKDY3MCk7CisgICAgICAgICAgICBjdXJy
ZW50RXJyb3JzLmFkZChlcnIpOzsKKyAgICAgICAgICAgIHJldHVybjsKKyAgICAgICAgfQorICAg
ICAgICBTdHJpbmcga29vcmQyID0zRCBjdHguZ2V0Q2hpbGQoNSkudG9TdHJpbmcoKTsKKyAgICAg
ICAga29vcmQyID0zRCBrb29yZDIucmVwbGFjZUFsbCgiXCIiLCAiIik7CisgICAgICAgIGlmICgh
a29vcmQyLm1hdGNoZXMoTGFmRGF0YVR5cGVzLkMyMikpIHsKKyAgICAgICAgICAgIFJlcG9ydEl0
ZW0gZXJyID0zRCBuZXcgUmVwb3J0SXRlbSgpOworICAgICAgICAgICAgZXJyLnNldEtleShjdHgu
Z2V0Q2hpbGQoMCkudG9TdHJpbmcoKSk7CisgICAgICAgICAgICBlcnIuc2V0VmFsdWUoa29vcmQy
KTsKKyAgICAgICAgICAgIGVyci5zZXRDb2RlKDY3MCk7CisgICAgICAgICAgICBjdXJyZW50RXJy
b3JzLmFkZChlcnIpOzsKKyAgICAgICAgICAgIHJldHVybjsKKyAgICAgICAgfQorICAgICAgICAv
LyBUT0RPOiBBZGQgdG8gImVudG5haG1lb3J0IgorICAgICAgICAvL2N1cnJlbnRQcm9iZS5hZGRB
dHRyaWJ1dGUoY3R4LmdldENoaWxkKDApLnRvU3RyaW5nKCkudG9VcHBlckNhc2U9CigpLCB2YWx1
ZSk7CisgICAgICAgIFN5c3RlbS5vdXQucHJpbnRsbihjdHguZ2V0Q2hpbGQoMCkgKyAiOiAiICsg
YXJ0ICsgIiAiICsga29vcmQxICsgIj0KICIgKyBrb29yZDIpOworICAgIH0KKworICAgIC8qKgor
ICAgICAqIHtAaW5oZXJpdERvY30KKyAgICAgKgorICAgICAqIDxwPlRoZSBkZWZhdWx0IGltcGxl
bWVudGF0aW9uIGRvZXMgbm90aGluZy48L3A+CisgICAgICovCisgICAgQE92ZXJyaWRlIHB1Ymxp
YyB2b2lkIGVudGVyUF9vcnRzX3p1c2F0emNvZGUoTGFmUGFyc2VyLlBfb3J0c196dXNhdHpjbz0K
ZGVDb250ZXh0IGN0eCkgeworICAgICAgICBTdHJpbmcgdmFsdWUgPTNEIGN0eC5nZXRDaGlsZCgx
KS50b1N0cmluZygpOworICAgICAgICB2YWx1ZSA9M0QgdmFsdWUucmVwbGFjZUFsbCgiXCIiLCAi
Iik7CisgICAgICAgIGlmICghdmFsdWUubWF0Y2hlcyhMYWZEYXRhVHlwZXMuQzgpKSB7CisgICAg
ICAgICAgICBSZXBvcnRJdGVtIGVyciA9M0QgbmV3IFJlcG9ydEl0ZW0oKTsKKyAgICAgICAgICAg
IGVyci5zZXRLZXkoY3R4LmdldENoaWxkKDApLnRvU3RyaW5nKCkpOworICAgICAgICAgICAgZXJy
LnNldFZhbHVlKHZhbHVlKTsKKyAgICAgICAgICAgIGVyci5zZXRDb2RlKDY3MCk7CisgICAgICAg
ICAgICBjdXJyZW50RXJyb3JzLmFkZChlcnIpOzsKKyAgICAgICAgICAgIHJldHVybjsKKyAgICAg
ICAgfQorICAgICAgICAvLyBUT0RPOiBBZGQgdG8gImVudG5haG1lb3J0IgorICAgICAgICAvL2N1
cnJlbnRQcm9iZS5hZGRBdHRyaWJ1dGUoY3R4LmdldENoaWxkKDApLnRvU3RyaW5nKCkudG9VcHBl
ckNhc2U9CigpLCB2YWx1ZSk7CisgICAgICAgIFN5c3RlbS5vdXQucHJpbnRsbihjdHguZ2V0Q2hp
bGQoMCkgKyAiOiAiICsgdmFsdWUpOworICAgIH0KKworICAgIC8qKgorICAgICAqIHtAaW5oZXJp
dERvY30KKyAgICAgKgorICAgICAqIDxwPlRoZSBkZWZhdWx0IGltcGxlbWVudGF0aW9uIGRvZXMg
bm90aGluZy48L3A+CisgICAgICovCisgICAgQE92ZXJyaWRlIHB1YmxpYyB2b2lkIGVudGVyUF9v
cnRzX3p1c2F0enRleHQoTGFmUGFyc2VyLlBfb3J0c196dXNhdHp0ZT0KeHRDb250ZXh0IGN0eCkg
eworICAgICAgICBTdHJpbmcgdmFsdWUgPTNEIGN0eC5nZXRDaGlsZCgxKS50b1N0cmluZygpOwor
ICAgICAgICB2YWx1ZSA9M0QgdmFsdWUucmVwbGFjZUFsbCgiXCIiLCAiIik7CisgICAgICAgIGlm
ICghdmFsdWUubWF0Y2hlcyhMYWZEYXRhVHlwZXMuTUM1MCkpIHsKKyAgICAgICAgICAgIFJlcG9y
dEl0ZW0gZXJyID0zRCBuZXcgUmVwb3J0SXRlbSgpOworICAgICAgICAgICAgZXJyLnNldEtleShj
dHguZ2V0Q2hpbGQoMCkudG9TdHJpbmcoKSk7CisgICAgICAgICAgICBlcnIuc2V0VmFsdWUodmFs
dWUpOworICAgICAgICAgICAgZXJyLnNldENvZGUoNjcwKTsKKyAgICAgICAgICAgIGN1cnJlbnRF
cnJvcnMuYWRkKGVycik7OworICAgICAgICAgICAgcmV0dXJuOworICAgICAgICB9CisgICAgICAg
IC8vIFRPRE86IEFkZCB0byAiZW50bmFobWVvcnQiCisgICAgICAgIC8vY3VycmVudFByb2JlLmFk
ZEF0dHJpYnV0ZShjdHguZ2V0Q2hpbGQoMCkudG9TdHJpbmcoKS50b1VwcGVyQ2FzZT0KKCksIHZh
bHVlKTsKKyAgICAgICAgU3lzdGVtLm91dC5wcmludGxuKGN0eC5nZXRDaGlsZCgwKSArICI6ICIg
KyB2YWx1ZSk7CisgICAgfQorCisgICAgLyoqCisgICAgICoge0Bpbmhlcml0RG9jfQorICAgICAq
CisgICAgICogPHA+VGhlIGRlZmF1bHQgaW1wbGVtZW50YXRpb24gZG9lcyBub3RoaW5nLjwvcD4K
KyAgICAgKi8KKyAgICBAT3ZlcnJpZGUgcHVibGljIHZvaWQgZW50ZXJQX251dHNfY29kZShMYWZQ
YXJzZXIuUF9udXRzX2NvZGVDb250ZXh0IGN0PQp4KSB7CisgICAgICAgIFN0cmluZyB2YWx1ZSA9
M0QgY3R4LmdldENoaWxkKDEpLnRvU3RyaW5nKCk7CisgICAgICAgIHZhbHVlID0zRCB2YWx1ZS5y
ZXBsYWNlQWxsKCJcIiIsICIiKTsKKyAgICAgICAgaWYgKCF2YWx1ZS5tYXRjaGVzKExhZkRhdGFU
eXBlcy5JMTApKSB7CisgICAgICAgICAgICBSZXBvcnRJdGVtIGVyciA9M0QgbmV3IFJlcG9ydEl0
ZW0oKTsKKyAgICAgICAgICAgIGVyci5zZXRLZXkoY3R4LmdldENoaWxkKDApLnRvU3RyaW5nKCkp
OworICAgICAgICAgICAgZXJyLnNldFZhbHVlKHZhbHVlKTsKKyAgICAgICAgICAgIGVyci5zZXRD
b2RlKDY3MCk7CisgICAgICAgICAgICBjdXJyZW50RXJyb3JzLmFkZChlcnIpOzsKKyAgICAgICAg
ICAgIHJldHVybjsKKyAgICAgICAgfQorICAgICAgICAvLyBUT0RPOiBBZGQgdG8gImVudG5haG1l
b3J0IgorICAgICAgICAvL2N1cnJlbnRQcm9iZS5hZGRBdHRyaWJ1dGUoY3R4LmdldENoaWxkKDAp
LnRvU3RyaW5nKCkudG9VcHBlckNhc2U9CigpLCB2YWx1ZSk7CisgICAgICAgIFN5c3RlbS5vdXQu
cHJpbnRsbihjdHguZ2V0Q2hpbGQoMCkgKyAiOiAiICsgdmFsdWUpOworICAgIH0KKworICAgIC8q
KgorICAgICAqIHtAaW5oZXJpdERvY30KKyAgICAgKgorICAgICAqIDxwPlRoZSBkZWZhdWx0IGlt
cGxlbWVudGF0aW9uIGRvZXMgbm90aGluZy48L3A+CisgICAgICovCisgICAgQE92ZXJyaWRlIHB1
YmxpYyB2b2lkIGVudGVyUF9zaXRlX2lkKExhZlBhcnNlci5QX3NpdGVfaWRDb250ZXh0IGN0eCkg
eworICAgICAgICBTdHJpbmcgdmFsdWUgPTNEIGN0eC5nZXRDaGlsZCgxKS50b1N0cmluZygpOwor
ICAgICAgICB2YWx1ZSA9M0QgdmFsdWUucmVwbGFjZUFsbCgiXCIiLCAiIik7CisgICAgICAgIGlm
ICghdmFsdWUubWF0Y2hlcyhMYWZEYXRhVHlwZXMuQzgpKSB7CisgICAgICAgICAgICBSZXBvcnRJ
dGVtIGVyciA9M0QgbmV3IFJlcG9ydEl0ZW0oKTsKKyAgICAgICAgICAgIGVyci5zZXRLZXkoY3R4
LmdldENoaWxkKDApLnRvU3RyaW5nKCkpOworICAgICAgICAgICAgZXJyLnNldFZhbHVlKHZhbHVl
KTsKKyAgICAgICAgICAgIGVyci5zZXRDb2RlKDY3MCk7CisgICAgICAgICAgICBjdXJyZW50RXJy
b3JzLmFkZChlcnIpOzsKKyAgICAgICAgICAgIHJldHVybjsKKyAgICAgICAgfQorICAgICAgICAv
LyBUT0RPOiBBZGQgdG8gImVudG5haG1lb3J0IgorICAgICAgICAvL2N1cnJlbnRQcm9iZS5hZGRB
dHRyaWJ1dGUoY3R4LmdldENoaWxkKDApLnRvU3RyaW5nKCkudG9VcHBlckNhc2U9CigpLCB2YWx1
ZSk7CisgICAgICAgIFN5c3RlbS5vdXQucHJpbnRsbihjdHguZ2V0Q2hpbGQoMCkgKyAiOiAiICsg
dmFsdWUpOworICAgIH0KKworICAgIC8qKgorICAgICAqIHtAaW5oZXJpdERvY30KKyAgICAgKgor
ICAgICAqIDxwPlRoZSBkZWZhdWx0IGltcGxlbWVudGF0aW9uIGRvZXMgbm90aGluZy48L3A+Cisg
ICAgICovCisgICAgQE92ZXJyaWRlIHB1YmxpYyB2b2lkIGVudGVyUF9zaXRlX25hbWUoTGFmUGFy
c2VyLlBfc2l0ZV9uYW1lQ29udGV4dCBjdD0KeCkgeworICAgICAgICBTdHJpbmcgdmFsdWUgPTNE
IGN0eC5nZXRDaGlsZCgxKS50b1N0cmluZygpOworICAgICAgICB2YWx1ZSA9M0QgdmFsdWUucmVw
bGFjZUFsbCgiXCIiLCAiIik7CisgICAgICAgIGlmICghdmFsdWUubWF0Y2hlcyhMYWZEYXRhVHlw
ZXMuQ19TVEFSKSkgeworICAgICAgICAgICAgUmVwb3J0SXRlbSBlcnIgPTNEIG5ldyBSZXBvcnRJ
dGVtKCk7CisgICAgICAgICAgICBlcnIuc2V0S2V5KGN0eC5nZXRDaGlsZCgwKS50b1N0cmluZygp
KTsKKyAgICAgICAgICAgIGVyci5zZXRWYWx1ZSh2YWx1ZSk7CisgICAgICAgICAgICBlcnIuc2V0
Q29kZSg2NzApOworICAgICAgICAgICAgY3VycmVudEVycm9ycy5hZGQoZXJyKTs7CisgICAgICAg
ICAgICByZXR1cm47CisgICAgICAgIH0KKyAgICAgICAgLy8gVE9ETzogQWRkIHRvICJlbnRuYWht
ZW9ydCIKKyAgICAgICAgLy9jdXJyZW50UHJvYmUuYWRkQXR0cmlidXRlKGN0eC5nZXRDaGlsZCgw
KS50b1N0cmluZygpLnRvVXBwZXJDYXNlPQooKSwgdmFsdWUpOworICAgICAgICBTeXN0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gICBTeXN0ZW0ub3V0LnByaW50bG4oY3R4LmdldENo
aWxkKDApICsgIjogIiArIHZhbHVlKTsKKyAgICB9CisKKyAgICAvKioKKyAgICAgKiB7QGluaGVy
aXREb2N9CisgICAgICoKKyAgICAgKiA8cD5UaGUgZGVmYXVsdCBpbXBsZW1lbnRhdGlvbiBkb2Vz
IG5vdGhpbmcuPC9wPgorICAgICAqLworICAgIEBPdmVycmlkZSBwdWJsaWMgdm9pZCBlbnRlclBf
aG9laGVfbGFuZChMYWZQYXJzZXIuUF9ob2VoZV9sYW5kQ29udGV4dCA9CmN0eCkgeworICAgICAg
ICBTdHJpbmcgdmFsdWUgPTNEIGN0eC5nZXRDaGlsZCgxKS50b1N0cmluZygpOworICAgICAgICB2
YWx1ZSA9M0QgdmFsdWUucmVwbGFjZUFsbCgiXCIiLCAiIik7CisgICAgICAgIGlmICghdmFsdWUu
bWF0Y2hlcyhMYWZEYXRhVHlwZXMuRjEwKSkgeworICAgICAgICAgICAgU3lzdGVtLm91dC5wcmlu
dGxuKCJGMTAgZG9lcyBub3QgbWF0Y2ggaW4gaG9laGVfbGFuZCIpOworICAgICAgICAgICAgUmVw
b3J0SXRlbSBlcnIgPTNEIG5ldyBSZXBvcnRJdGVtKCk7CisgICAgICAgICAgICBlcnIuc2V0S2V5
KGN0eC5nZXRDaGlsZCgwKS50b1N0cmluZygpKTsKKyAgICAgICAgICAgIGVyci5zZXRWYWx1ZSh2
YWx1ZSk7CisgICAgICAgICAgICBlcnIuc2V0Q29kZSg2NzApOworICAgICAgICAgICAgY3VycmVu
dEVycm9ycy5hZGQoZXJyKTs7CisgICAgICAgICAgICByZXR1cm47CisgICAgICAgIH0KKyAgICAg
ICAgLy8gVE9ETzogQWRkIHRvICJlbnRuYWhtZW9ydCIKKyAgICAgICAgLy9jdXJyZW50UHJvYmUu
YWRkQXR0cmlidXRlKGN0eC5nZXRDaGlsZCgwKS50b1N0cmluZygpLnRvVXBwZXJDYXNlPQooKSwg
dmFsdWUpO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ldEtleShjdHguZ2V0Q2hpbGQoMCkudG9TdHJpbmcoKSk7
CisgICAgICAgICAgICBlcnIuc2V0VmFsdWUodmFsdWUpOworICAgICAgICAgICAgZXJyLnNldENv
ZGUoNjcwKTsKKyAgICAgICAgICAgIGN1cnJlbnRFcnJvcnMuYWRkKGVycik7OworICAgICAgICAg
ICAgcmV0dXJuOworICAgICAgICB9CisgICAgICAgIGlmIChjdXJyZW50TWVzc3VuZyA9M0Q9M0Qg
bnVsbCkgeworICAgICAgICAgICAgY3VycmVudE1lc3N1bmcgPTNEIGRhdGEubmV3IE1lc3N1bmco
KTsKKyAgICAgICAgfQorICAgICAgICBjdXJyZW50TWVzc3VuZy5hZGRBdHRyaWJ1dGUoY3R4Lmdl
dENoaWxkKDApLnRvU3RyaW5nKCkudG9VcHBlckNhc2U9CigpLCB2YWx1ZSk7CisgICAgICAgIFN5
c3RlbS5vdXQucHJpbnRsbihjdHguZ2V0Q2hpbGQoMCkgKyAiOiAiICsgdmFsdWUpOworICAgIH0K
KworICAgIC8qKgorICAgICAqIHtAaW5oZXJpdERvY30KKyAgICAgKgorICAgICAqIDxwPlRoZSBk
ZWZhdWx0IGltcGxlbWVudGF0aW9uIGRvZXMgbm90aGluZy48L3A+CisgICAgICovCisgICAgQE92
ZXJyaWRlIHB1YmxpYyB2b2lkIGVudGVyTWVzc21ldGhvZGVfcyhMYWZQYXJzZXIuTWVzc21ldGhv
ZGVfc0NvbnRleD0KdCBjdHgpIHsKKyAgICAgICAgU3RyaW5nIHZhbHVlID0zRCBjdHguZ2V0Q2hp
bGQoMSkudG9TdHJpbmcoKTsKKyAgICAgICAgdmFsdWUgPTNEIHZhbHVlLnJlcGxhY2VBbGwoIlwi
IiwgIiIpOworICAgICAgICBpZiAoIXZhbHVlLm1hdGNoZXMoTGFmRGF0YVR5cGVzLlNDMikpIHsK
KyAgICAgICAgICAgIFJlcG9ydEl0ZW0gZXJyID0zRCBuZXcgUmVwb3J0SXRlbSgpOworICAgICAg
ICAg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dGFU
eXBlcy5DOSkpIHsKKyAgICAgICAgICAgIFJlcG9ydEl0ZW0gZXJyID0zRCBuZXcgUmVwb3J0SXRl
bSgpOworICAgICAgICAgICAgZXJyLnNldEtleShjdHguZ2V0Q2hpbGQoMCkudG9TdHJpbmcoKSk7
CisgICAgICAgICAgICBlcnIuc2V0VmFsdWUoZWluaGVpdCk7CisgICAgICAgICAgICBlcnIuc2V0
Q29kZSg2NzApOworICAgICAgICAgICAgY3VycmVudEVycm9ycy5hZGQoZXJyKTs7CisgICAgICAg
ICAgICByZXR1cm47CisgICAgICAgIH0KKyAgICAgICAgU3RyaW5nIGZlaGxlciA9M0QgY3R4Lmdl
dENoaWxkKDcpLnRvU3RyaW5nKCk7CisgICAgICAgIGZlaGxlciA9M0QgZmVobGVyLnJlcGxhY2VB
bGwoIlwiIiwgIiIpOworICAgICAgICBpZiAoIWZlaGxlci5tYXRjaGVzKExhZkRhdGFUeXBlcy5G
OSkpIHsKKyAgICAgICAgICAgIFJlcG9ydEl0ZW0gZXJyID0zRCBuZXcgUmVwb3J0SXRlbSgpOwor
ICAgICAgICAgICAgZXJyLnNldEtleShjdHguZ2V0Q2hpbGQoMCkudG9TdHJpbmcoKSk7CisgICAg
ICAgICAgICBlcnIuc2V0VmFsdWUoZmVobGVyKTsKKyAgICAgICAgICAgIGVyci5zZXRDb2RlKDY3
MCk7CisgICAgICAgICAgICBjdXJyZW50RXJyb3JzLmFkZChlcnIpOzsKKyAgICAgICAgICAgIHJl
dHVybjsKKyAgICAgICAgfQorICAgICAgICBNYXA8U3RyaW5nLCBTdHJpbmc+IHp1c2F0endlcnQg
PTNEIG5ldyBIYXNoTWFwPFN0cmluZywgU3RyaW5nPigpOworICAgICAgICB6dXNhdHp3ZXJ0LnB1
dCgiUFpTIiwgZ3JvZXNzZSk7CisgICAgICAgIHp1c2F0endlcnQucHV0KCJNRVNTV0VSVF9QWlMi
LCB3ZXJ0KTsKKyAgICAgICAgenVzYXR6d2VydC5wdXQoIkVJT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N0cmluZygpOworICAgICAgICB3ZXJ0ID0zRCB3ZXJ0LnJlcGxhY2VBbGwoIlwi
IiwgIiIpOworICAgICAgICBpZiAoIXdlcnQubWF0Y2hlcyhMYWZEYXRhVHlwZXMuRjEyKSkgewor
ICAgICAgICAgICAgUmVwb3J0SXRlbSBlcnIgPTNEIG5ldyBSZXBvcnRJdGVtKCk7CisgICAgICAg
ICAgICBlcnIuc2V0S2V5KGN0eC5nZXRDaGlsZCgwKS50b1N0cmluZygpKTsKKyAgICAgICAgICAg
IGVyci5zZXRWYWx1ZSh3ZXJ0KTsKKyAgICAgICAgICAgIGVyci5zZXRDb2RlKDY3MCk7CisgICAg
ICAgICAgICBjdXJyZW50RXJyb3JzLmFkZChlcnIpOzsKKyAgICAgICAgICAgIHJldHVybjsKKyAg
ICAgICAgfQorICAgICAgICBTdHJpbmcgZWluaGVpdCA9M0QgY3R4LmdldENoaWxkKDUpLnRvU3Ry
aW5nKCk7CisgICAgICAgIGVpbmhlaXQgPTNEIGVpbmhlaXQucmVwbGFjZUFsbCgiXCIiLCAiIik7
CisgICAgICAgIGlmICghZWluaGVpdC5tYXRjaGVzKExhZkRhdGFUeXBlcy5TSTMpKSB7CisgICAg
ICAgICAgICBSZXBvcnRJdGVtIGVyciA9M0QgbmV3IFJlcG9ydEl0ZW0oKTsKKyAgICAgICAgICAg
IGVyci5zZXRLZXkoY3R4LmdldENoaWxkKDApLnRvU3RyaW5nKCkpOworICAgICAgICAgICAgZXJy
LnNldFZhbHVlKGVpbmhlaXQpOworICAgICAgICAgICAgZXJyLnNldENvZGUoNjcwKTsKKyAgICAg
ICAgICAgIGN1cnJlbnRFcnJvcnMuYWRkKGVycik7OworICAgICAgICAgICAgcmV0dXJuOworICAg
ICAgICB9CisgICAgICAgIFN0cmluZyBmZWhsZXIgPTNEIGN0eC5nZXRDaGlsZCg3KS50b1N0cmlu
ZygpOworICAgICAgICBmZWhsZXIgPTNEIGZlaGxlci5yZXBsYWNlQWxsKCJcIiIsICI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NZXNzd2VydENvbnRleHQgY3R4KSB7CisgICAgICAg
IC8vIGM1MCogZjEyIGM5IGY5KioKKyAgICAgICAgTGlzdDxTdHJpbmc+IGNoaWxkcmVuID0zRCBu
ZXcgQXJyYXlMaXN0PFN0cmluZz4oKTsKKyAgICAgICAgZm9yIChpbnQgaSA9M0QgMDsgaSA8IGN0
eC5nZXRDaGlsZENvdW50KCk7IGkrKykgeworICAgICAgICAgICAgaWYgKCFjdHguZ2V0Q2hpbGQo
aSkudG9TdHJpbmcoKS5zdGFydHNXaXRoKCIgIikpIHsKKyAgICAgICAgICAgICAgICBjaGlsZHJl
bi5hZGQoY3R4LmdldENoaWxkKGkpLnRvU3RyaW5nKCkpOworICAgICAgICAgICAgfQorICAgICAg
ICB9CisgICAgICAgIFN0cmluZyBncm9lc3NlID0zRCBjaGlsZHJlbi5nZXQoMSk7CisgICAgICAg
IGdyb2Vzc2UgPTNEIGdyb2Vzc2UucmVwbGFjZUFsbCgiXCIiLCAiIik7CisgICAgICAgIGlmICgh
Z3JvZXNzZS5tYXRjaGVzKExhZkRhdGFUeXBlcy5DX1NUQVIpKSB7CisgICAgICAgICAgICBTeXN0
ZW0ub3V0LnByaW50bG4oIm13IC0gZ3JvZXNzZTogIiArIGdyb2Vzc2UpOworICAgICAgICAgICAg
UmVwb3J0SXRlbSBlcnIgPTNEIG5ldyBSZXBvcnRJdGVtKCk7CisgICAgICAgICAgICBlcnIuc2V0
S2V5KGN0eC5nZXRDaGlsZCgwKS50b1N0cmluZygpKTsKKyAgICAgICAgICAgIGVyci5zZXRWYWx1
ZShncm9lc3NlKTsKKyAgICAgICAgICAgIGVyci5zZXRDb2RlKDY3MCk7CisgICAgICAgICAgICBj
dXJyZW50RXJyb3JzLmFkZChlcnIpOzsKKyAgICAgICAgICAgIHJldHVybjsKKyAgICAgICAgfQor
ICAgICAgICBTdHJpbmcgd2VydCA9M0QgY2hpbGRyZW4uZ2V0KDIpOworICAgICAgICB3ZXJ0ID0z
RCB3ZXJ0LnJlcGxhY2VBbGwoIlwiIiwgIiIpOworICAgICAgICBTeXN0ZW0ub3V0LnByaW50bG4o
d2VydCk7CisgICAgICAgIGlmICghd2VydC5tYXRjaGVzKExhZkRhdGFUeXBlcy5GMTIpKSB7Cisg
ICAgICAgICAgICBTeXN0ZW0ub3V0LnByaW50bG4oIm13OiB3ZXJ0Iik7CisgICAgICAgICAgICBS
ZXBvcnRJdGVtIGVyciA9M0QgbmV3IFJlcG9ydEl0ZW0oKTsKKyAgICAgICAgICAgIGVyci5zZXRL
ZXkoY3R4LmdldENoaWxkKDApLnRvU3RyaW5nKCkpOworICAgICAgICAgICAgZXJyLnNldFZhbHVl
KHdlcnQpOworICAgICAgICAgICAgZXJyLnNldENvZGUoNjcwKTsKKyAgICAgICAgICAgIGN1cnJl
bnRFcnJvcnMuYWRkKGVycik7OworICAgICAgICAgICAgcmV0dXJuOworICAgICAgICB9CisgICAg
ICAgIFN0cmluZyBlaW5oZWl0ID0zRCBjaGlsZHJlbi5nZXQoMyk7CisgICAgICAgIGVpbmhlaXQg
PTNEIGVpbmhlaXQucmVwbGFjZUFsbCgiXCIiLCAiIik7CisgICAgICAgIGlmICghZWluaGVpdC5t
YXRjaGVzKExhZkRhdGFUeXBlcy5DOSkpIHsKKyAgICAgICAgICAgIFN5c3RlbS5vdXQucHJpbnRs
bigibXc6IGVpbmhlaXQiKTsKKyAgICAgICAgICAgIFJlcG9ydEl0ZW0gZXJyID0zRCBuZXcgUmVw
b3J0SXRlbSgpOworICAgICAgICAgICAgZXJyLnNldEtleShjdHguZ2V0Q2hpbGQoMCkudG9TdHJp
bmcoKSk7CisgICAgICAgICAgICBlcnIuc2V0VmFsdWUoZWluaGVpdCk7CisgICAgICAgICAgICBl
cnIuc2V0Q29kZSg2NzApOworICAgICAgICAgICAgY3VycmVudEVycm9ycy5hZGQoZXJyKTs7Cisg
ICAgICAgICAgICByZXR1cm47CisgICAgICAgIH0KKyAgICAgICAgU3RyaW5nIGZlaGxlciA9M0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pKTsKKyAgICAgICAgICAgIGVyci5zZXRW
YWx1ZShlaW5oZWl0KTsKKyAgICAgICAgICAgIGVyci5zZXRDb2RlKDY3MCk7CisgICAgICAgICAg
ICBjdXJyZW50RXJyb3JzLmFkZChlcnIpOzsKKyAgICAgICAgICAgIHJldHVybjsKKyAgICAgICAg
fQorICAgICAgICBTdHJpbmcgZmVobGVyID0zRCBudWxsOworICAgICAgICBpZiAoY3R4LmdldENo
aWxkQ291bnQoKSA+PTNEIDgpIHsKKyAgICAgICAgICAgIGZlaGxlciA9M0QgY2hpbGRyZW4uZ2V0
KDQpOworICAgICAgICAgICAgZmVobGVyID0zRCBmZWhsZXIucmVwbGFjZUFsbCgiXCIiLCAiIik7
CisgICAgICAgICAgICBpZiAoIWZlaGxlci5tYXRjaGVzKExhZkRhdGFUeXBlcy5GOSkpIHsKKyAg
ICAgICAgICAgICAgICBSZXBvcnRJdGVtIGVyciA9M0QgbmV3IFJlcG9ydEl0ZW0oKTsKKyAgICAg
ICAgICAgICAgICBlcnIuc2V0S2V5KGN0eC5nZXRDaGlsZCgwKS50b1N0cmluZygpKTsKKyAgICAg
ICAgICAgICAgICBlcnIuc2V0VmFsdWUoZmVobGVyKTsKKyAgICAgICAgICAgICAgICBlcnIuc2V0
Q29kZSg2NzApOworICAgICAgICAgICAgICAgIGN1cnJlbnRFcnJvcnMuYWRkKGVycik7OworICAg
ICAgICAgICAgICAgIHJldHVybjsKKyAgICAgICAgICAgIH0KKyAgICAgICAgfQorICAgICAgICBN
YXA8U3RyaW5nLCBTdHJpbmc+IG1lc3N3ZXJ0ID0zRCBuZXcgSGFzaE1hcDxTdHJpbmcsIFN0cmlu
Zz4oKTsKKyAgICAgICAgbWVzc3dlcnQucHV0KCJNRVNTR1JPRVNTRV9JRCIsIGdyb2Vzc2UpOwor
ICAgICAgICBtZXNzd2VydC5wdXQoIk1FU1NXRVJUIiwgd2VydCk7CisgICAgICAgIG1lc3N3ZXJ0
LnB1dCgiTUVIX0lEIiwgZ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F0Y2hlcyhMYWZEYXRhVHlwZXMuQzkpKSB7CisgICAg
ICAgICAgICBSZXBvcnRJdGVtIGVyciA9M0QgbmV3IFJlcG9ydEl0ZW0oKTsKKyAgICAgICAgICAg
IGVyci5zZXRLZXkoY3R4LmdldENoaWxkKDApLnRvU3RyaW5nKCkpOworICAgICAgICAgICAgZXJy
LnNldFZhbHVlKGVpbmhlaXQpOworICAgICAgICAgICAgZXJyLnNldENvZGUoNjcwKTsKKyAgICAg
ICAgICAgIGN1cnJlbnRFcnJvcnMuYWRkKGVycik7OworICAgICAgICAgICAgcmV0dXJuOworICAg
ICAgICB9CisgICAgICAgIFN0cmluZyBmZWhsZXIgPTNEIG51bGw7CisgICAgICAgIGlmIChjdHgu
Z2V0Q2hpbGRDb3VudCgpID49M0QgOCkgeworICAgICAgICAgICAgZmVobGVyID0zRCBjaGlsZHJl
bi5nZXQoNCk7CisgICAgICAgICAgICBmZWhsZXIgPTNEIGZlaGxlci5yZXBsYWNlQWxsKCJcIiIs
ICIiKTsKKyAgICAgICAgICAgIGlmICghZmVobGVyLm1hdGNoZXMoTGFmRGF0YVR5cGVzLkY5KSkg
eworICAgICAgICAgICAgICAgIFJlcG9ydEl0ZW0gZXJyID0zRCBuZXcgUmVwb3J0SXRlbSgpOwor
ICAgICAgICAgICAgICAgIGVyci5zZXRLZXkoY3R4LmdldENoaWxkKDApLnRvU3RyaW5nKCkpOwor
ICAgICAgICAgICAgICAgIGVyci5zZXRWYWx1ZShmZWhsZXIpOworICAgICAgICAgICAgICAgIGVy
ci5zZXRDb2RlKDY3MCk7CisgICAgICAgICAgICAgICAgY3VycmVudEVycm9ycy5hZGQoZXJyKTs7
CisgICAgICAgICAgICAgICAgcmV0dXJuOworICAgICAgICAgICAgfQorICAgICAgICB9CisgICAg
ICAgIC8vIFRPRE86IGhhbmRsZSBhbGwgdmFsdWVzCisgICAgICAgIE1hcDxTdHJpbmcsIFN0cmlu
Zz4gbWVzc3dlcnQgPTNEIG5ldyBIYXN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mFkZChlcnIpOzsKKyAgICAgICAgICAgIHJldHVybjsKKyAgICAgICAgfQorICAg
ICAgICBTdHJpbmcgZWluaGVpdCA9M0QgY2hpbGRyZW4uZ2V0KDMpOworICAgICAgICBlaW5oZWl0
ID0zRCBlaW5oZWl0LnJlcGxhY2VBbGwoIlwiIiwgIiIpOworICAgICAgICBpZiAoIWVpbmhlaXQu
bWF0Y2hlcyhMYWZEYXRhVHlwZXMuQzkpKSB7CisgICAgICAgICAgICBSZXBvcnRJdGVtIGVyciA9
M0QgbmV3IFJlcG9ydEl0ZW0oKTsKKyAgICAgICAgICAgIGVyci5zZXRLZXkoY3R4LmdldENoaWxk
KDApLnRvU3RyaW5nKCkpOworICAgICAgICAgICAgZXJyLnNldFZhbHVlKGVpbmhlaXQpOworICAg
ICAgICAgICAgZXJyLnNldENvZGUoNjcwKTsKKyAgICAgICAgICAgIGN1cnJlbnRFcnJvcnMuYWRk
KGVycik7OworICAgICAgICAgICAgcmV0dXJuOworICAgICAgICB9CisgICAgICAgIFN0cmluZyBm
ZWhsZXIgPTNEIG51bGw7CisgICAgICAgIGlmIChjdHguZ2V0Q2hpbGRDb3VudCgpID49M0QgOCkg
eworICAgICAgICAgICAgZmVobGVyID0zRCBjaGlsZHJlbi5nZXQoNCk7CisgICAgICAgICAgICBm
ZWhsZXIgPTNEIGZlaGxlci5yZXBsYWNlQWxsKCJcIiIsICIiKTsKKyAgICAgICAgICAgIGlmICgh
ZmVobGVyLm1hdGNoZXMoTGFmRGF0YVR5cGVzLkY5KSkgeworICAgICAgICAgICAgICAgIFJlcG9y
dEl0ZW0gZXJyID0zRCBuZXcgUmVwb3J0SXRlbSgpOworICAgICAgICAgICAgICAgIGVyci5zZXRL
ZXkoY3R4LmdldENoaWxkKDApLnRvU3RyaW5nKCkpOworICAgICAgICAgICAgICAgIGVyci5zZXRW
YWx1ZShmZWhsZXIpOworICAgICAgICAgICAgICAgIGVyci5zZXRDb2RlKDY3MCk7CisgICAgICAg
ICAgICAgIC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BUT0RPCisgICAgfQorCisgICAgLyoqCisg
ICAgICoge0Bpbmhlcml0RG9jfQorICAgICAqCisgICAgICogPHA+VGhlIGRlZmF1bHQgaW1wbGVt
ZW50YXRpb24gZG9lcyBub3RoaW5nLjwvcD4KKyAgICAgKi8KKyAgICBAT3ZlcnJpZGUgcHVibGlj
IHZvaWQgZW50ZXJNZXNzd2VydF9ud2dfcyhMYWZQYXJzZXIuTWVzc3dlcnRfbndnX3NDb250PQpl
eHQgY3R4KSB7CisgICAgICAgIC8vIFRPRE8KKyAgICB9CisKKyAgICAvKioKKyAgICAgKiB7QGlu
aGVyaXREb2N9CisgICAgICoKKyAgICAgKiA8cD5UaGUgZGVmYXVsdCBpbXBsZW1lbnRhdGlvbiBk
b2VzIG5vdGhpbmcuPC9wPgorICAgICAqLworICAgIEBPdmVycmlkZSBwdWJsaWMgdm9pZCBlbnRl
ck1lc3N3ZXJ0X253Z19pKExhZlBhcnNlci5NZXNzd2VydF9ud2dfaUNvbnQ9CmV4dCBjdHgpIHsK
KyAgICAgICAgLy8gVE9ETworICAgIH0KKworICAgIC8qKgorICAgICAqIHtAaW5oZXJpdERvY30K
KyAgICAgKgorICAgICAqIDxwPlRoZSBkZWZhdWx0IGltcGxlbWVudGF0aW9uIGRvZXMgbm90aGlu
Zy48L3A+CisgICAgICovCisgICAgQE92ZXJyaWRlIHB1YmxpYyB2b2lkIGVudGVyTWVzc3dlcnRf
bndnX2coTGFmUGFyc2VyLk1lc3N3ZXJ0X253Z19nQ29udD0KZXh0IGN0eCkgeworICAgICAgICAv
LyBUT0RPCisgICAgfQorCisgICAgLyoqCisgICAgICoge0Bpbmhlcml0RG9jfQorICAgICAqCisg
ICAgICogPHA+VGhlIGRlZmF1bHQgaW1wbGVtZW50YXRpb24gZG9lcyBub3RoaW5nLjwvcD4KKyAg
ICAgKi8KKyAgICBAT3ZlcnJpZGUgcHVibGljIHZvaWQgZW50ZXJLb21tZW50YXIoTGFmUGFyc2Vy
LktvbW1lbnRhckNvbnRleHQgY3R4KSB7CisgICAgICAgIC8vIGM1IGQ4IHQ0IG1jMzAwCisgICAg
ICAgIFN0cmluZyBtc3QgPTNEIGN0eC5nZXRDaGlsZCgxKS50b1N0cmluZygpOworICAgICAgICBt
c3QgPTNEIG1zdC5yZXBsYWNlQWxsKCJcIiIsICIiKTsKKyAgICAgICAgaWYgKCFtc3QubWF0Y2hl
cyhMYWZEYXRhVHlwZXMuQzUpKSB7CisgICAgICAgICAgICBSZXBvcnRJdGVtIGVyciA9M0QgbmV3
IFJlcG9ydEl0ZW0oKTsKKyAgICAgICAgICAgIGVyci5zZXRLZXkoY3R4LmdldENoaWxkKDApLnRv
U3RyaW5nKCkpOworICAgICAgICAgICAgZXJyLnNldFZhbHVlKG1zdCk7CisgICAgICAgICAgICBl
cnIuc2V0Q29kZSg2NzApOworICAgICAgICAgICAgY3VycmVudEVycm9ycy5hZGQoZXJyKTs7Cisg
ICAgICAgICAgICByZXR1cm47CisgICAgICAgIH0KKyAgICAgICAgU3RyaW5nIGRhdGUgPTNEIGN0
eC5nZXRDaGlsZCgzKS50b1N0cmluZygpOworICAgICAgICBkYXRlID0zRCBkYXRlLnJlcGxhY2VB
bGwoIlwiIiwgIiIpOworICAgICAgICBpZiAoIWRhdGUubWF0Y2hlcyhMYWZEYXRhVHlwZXMuRDgp
KSB7CisgICAgICAgICAgICBSZXBvcnRJdGVtIGVyciA9M0QgbmV3IFJlcG9ydEl0ZW0oKTsKKyAg
ICAgICAgICAgIGVyci5zZXRLZXkoY3R4LmdldENoaWxkKDApLnRvU3RyaW5nKCkpOworICAgICAg
ICAgICAgZXJyLnNldFZhbHVlKGRhdGUpOworICAgICAgICAgICAgZXJyLnNldENvZGUoNjcwKTsK
KyAgICAgICAgICAgIGN1cnJlbnRFcnJvcnMuYWRkKGVycik7OworICAgICAgICAgICAgcmV0dXJu
OworICAgICAgICB9CisgICAgICAgIFN0cmluZyB0aW1lID0zRCBjdHguZ2V0Q2hpbGQoNSkudG9T
dHJpbmcoKTsKKyAgICAgICAgdGltZSA9M0QgdGltZS5yZXBsYWNlQWxsKCJcIiIsICIiKTsKKyAg
ICAgICAgaWYgKCF0aW1lLm1hdGNoZXMoTGFmRGF0YVR5cGVzLlQ0KSkgeworICAgICAgICAgICAg
UmVwb3J0SXRlbSBlcnIgPTNEIG5ldyBSZXBvcnRJdGVtKCk7CisgICAgICAgICAgICBlcnIuc2V0
S2V5KGN0eC5nZXRDaGlsZCgwKS50b1N0cmluZygpKTsKKyAgICAgICAgICAgIGVyci5zZXRWYWx1
ZSh0aW1lKTsKKyAgICAgICAgICAgIGVyci5zZXRDb2RlKDY3MCk7CisgICAgICAgICAgICBjdXJy
ZW50RXJyb3JzLmFkZChlcnIpOzsKKyAgICAgICAgICAgIHJldHVybjsKKyAgICAgICAgfQorICAg
ICAgICBTdHJpbmcgdGV4dCA9M0QgY3R4LmdldENoaWxkKDcpLnRvU3RyaW5nKCk7CisgICAgICAg
IHRleHQgPTNEIHRleHQucmVwbGFjZUFsbCgiXCIiLCAiIik7CisgICAgICAgIGlmICghdGV4dC5t
YXRjaGVzKExhZkRhdGFUeXBlcy5NQzMwMCkpIHsKKyAgICAgICAgICAgIFJlcG9ydEl0ZW0gZXJy
ID0zRCBuZXcgUmVwb3J0SXRlbSgpOworICAgICAgICAgICAgZXJyLnNldEtleShjdHguZ2V0Q2hp
bGQoMCkudG9TdHJpbmcoKSk7CisgICAgICAgICAgICBlcnIuc2V0VmFsdWUodGV4dCk7CisgICAg
ICAgICAgICBlcnIuc2V0Q29kZSg2NzApOworICAgICAgICAgICAgY3VycmVudEVycm9ycy5hZGQo
ZXJyKTs7CisgICAgICAgICAgICByZXR1cm47CisgICAgICAgIH0KKyAgICAgICAgTWFwPFN0cmlu
ZywgU3RyaW5nPiBrb21tZW50YXIgPTNEIG5ldyBIYXNoTWFwPFN0cmluZywgU3RyaW5nPigpOwor
ICAgICAgICBrb21tZW50YXIucHV0KCJNU1RfSUQiLCBtc3QpOworICAgICAgICBr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ICAgICAgICBjdXJyZW50RXJyb3JzLmFkZChlcnIpOzsKKyAgICAg
ICAgICAgIHJldHVybjsKKyAgICAgICAgfQorICAgICAgICBNYXA8U3RyaW5nLCBTdHJpbmc+IGtv
bW1lbnRhciA9M0QgbmV3IEhhc2hNYXA8U3RyaW5nLCBTdHJpbmc+KCk7CisgICAgICAgIGtvbW1l
bnRhci5wdXQoIlRFWFQiLCB0ZXh0KTsKKyAgICAgICAgaWYgKGN1cnJlbnRNZXNzdW5nID0zRD0z
RCBudWxsKSB7CisgICAgICAgICAgICBjdXJyZW50TWVzc3VuZyA9M0QgZGF0YS5uZXcgTWVzc3Vu
ZygpOworICAgICAgICB9CisgICAgICAgIGN1cnJlbnRNZXNzdW5nLmFkZEtvbW1lbnRhcihrb21t
ZW50YXIpOworICAgICAgICBTeXN0ZW0ub3V0LnByaW50bG4oIktPTU1FTlRBUjogIiArIHRleHQp
OworICAgIH0KKworICAgIC8qKgorICAgICAqIHtAaW5oZXJpdERvY30KKyAgICAgKgorICAgICAq
IDxwPlRoZSBkZWZhdWx0IGltcGxlbWVudGF0aW9uIGRvZXMgbm90aGluZy48L3A+CisgICAgICov
CisgICAgQE92ZXJyaWRlIHB1YmxpYyB2b2lkIGVudGVyUHJvYmVua29tbWVudGFyKExhZlBhcnNl
ci5Qcm9iZW5rb21tZW50YXJDbz0KbnRleHQgY3R4KSB7CisgICAgICAgIC8vIGM1IGQ4IHQ0IG1j
MzAwCisgICAgICAgIFN0cmluZyBtc3QgPTNEIGN0eC5nZXRDaGlsZCgxKS50b1N0cmluZygpOwor
ICAgICAgICBtc3QgPTNEIG1zdC5yZXBsYWNlQWxsKCJcIiIsICIiKTsKKyAgICAgICAgaWYgKCFt
c3QubWF0Y2hlcyhMYWZEYXRhVHlwZXMuQzUpKSB7CisgICAgICAgICAgICBSZXBvcnRJdGVtIGVy
ciA9M0QgbmV3IFJlcG9ydEl0ZW0oKTsKKyAgICAgICAgICAgIGVyci5zZXRLZXkoY3R4LmdldENo
aWxkKDApLnRvU3RyaW5nKCkpOworICAgICAgICAgICAgZXJyLnNldFZhbHVlKG1zdCk7CisgICAg
ICAgICAgICBlcnIuc2V0Q29kZSg2NzApOworICAgICAgICAgICAgY3VycmVudEVycm9ycy5hZGQo
ZXJyKTs7CisgICAgICAgICAgICByZXR1cm47CisgICAgICAgIH0KKyAgICAgICAgU3RyaW5nIGRh
dGUgPTNEIGN0eC5nZXRDaGlsZCgzKS50b1N0cmluZygpOworICAgICAgICBkYXRlID0zRCBkYXRl
LnJlcGxhY2VBbGwoIlwiIiwgIiIpOworICAgICAgICBpZiAoIWRhdGUubWF0Y2hlcyhMYWZEYXRh
VHlwZXMuRDgpKSB7CisgICAgICAgICAgICBSZXBvcnRJdGVtIGVyciA9M0QgbmV3IFJlcG9ydEl0
ZW0oKTsKKyAgICAgICAgICAgIGVyci5zZXRLZXkoY3R4LmdldENoaWxkKDApLnRvU3RyaW5nKCkp
OworICAgICAgICAgICAgZXJyLnNldFZhbHVlKGRhdGUpOworICAgICAgICAgICAgZXJyLnNldENv
ZGUoNjcwKTsKKyAgICAgICAgICAgIGN1cnJlbnRFcnJvcnMuYWRkKGVycik7OworICAgICAgICAg
ICAgcmV0dXJuOworICAgICAgICB9CisgICAgICAgIFN0cmluZyB0aW1lID0zRCBjdHguZ2V0Q2hp
bGQoNSkudG9TdHJpbmcoKTsKKyAgICAgICAgdGltZSA9M0QgdGltZS5yZXBsYWNlQWxsKCJcIiIs
ICIiKTsKKyAgICAgICAgaWYgKCF0aW1lLm1hdGNoZXMoTGFmRGF0YVR5cGVzLlQ0KSkgeworICAg
ICAgICAgICAgUmVwb3J0SXRlbSBlcnIgPTNEIG5ldyBSZXBvcnRJdGVtKCk7CisgICAgICAgICAg
ICBlcnIuc2V0S2V5KGN0eC5nZXRDaGlsZCgwKS50b1N0cmluZygpKTsKKyAgICAgICAgICAgIGVy
ci5zZXRWYWx1ZSh0aW1lKTsKKyAgICAgICAgICAgIGVyci5zZXRDb2RlKDY3MCk7CisgICAgICAg
ICAgICBjdXJyZW50RXJyb3JzLmFkZChlcnIpOzsKKyAgICAgICAgICAgIHJldHVybjsKKyAgICAg
ICAgfQorICAgICAgICBTdHJpbmcgdGV4dCA9M0QgY3R4LmdldENoaWxkKDcpLnRvU3RyaW5nKCk7
CisgICAgICAgIHRleHQgPTNEIHRleHQucmVwbGFjZUFsbCgiXCIiLCAiIik7CisgICAgICAgIGlm
ICghdGV4dC5tYXRjaGVzKExhZkRhdGFUeXBlcy5NQzMwMCkpIHsKKyAgICAgICAgICAgIFJlcG9y
dEl0ZW0gZXJyID0zRCBuZXcgUmVwb3J0SXRlbSgpOworICAgICAgICAgICAgZXJyLnNldEtleShj
dHguZ2V0Q2hpbGQoMCkudG9TdHJpbmcoKSk7CisgICAgICAgICAgICBlcnIuc2V0VmFsdWUodGV4
dCk7CisgICAgICAgICAgICBlcnIuc2V0Q29kZSg2NzApOworICAgICAgICAgICAgY3VycmVudEVy
cm9ycy5hZGQoZXJyKTs7CisgICAgICAgICAgICByZXR1cm47CisgICAgICAgIH0KKyAgICAgICAg
TWFwPFN0cmluZywgU3RyaW5nPiBrb21tZW50YXIgPTNEIG5ldyBIYXNoTWFwPFN0cmluZywgU3Ry
aW5nPigpOworICAgICAgICBrb21tZW50YXIucHV0KCJNU1RfSUQiLCBtc3QpOworICAgICAgICBr
b21tZW50YXIucHV0KCJEQVRFIiwgZGF0ZSk7CisgICAgICAgIGtvbW1lbnRhci5wdXQoIlRJTUUi
LCB0aW1lKTsKKyAgICAgICAga29tbWVudGFyLnB1dCgiVEVYVCIsIHRleHQpOworICAgICAgICBj
dXJyZW50UHJvYmUuYWRkS29tbWVudGFyKGtvbW1lbnRhcik7CisgICAgICAgIFN5c3RlbS5vdXQu
cHJpbnRsbigiS09NTUVOVEFSOiAiICsgdGV4dCk7CisgICAgfQorCisgICAgLyoqCisgICAgICog
e0Bpbmhlcml0RG9jfQorICAgICAqCisgICAgICogPHA+VGhlIGRlZmF1bHQgaW1wb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mFsc2U7Ci0gICAgICAgIH0KLSAgICAg
ICAgYm9vbGVhbiBwYXJzZWQgPTNEIGZhbHNlOwotICAgICAgICB3aGlsZSAobGFmLnN0YXJ0c1dp
dGgoIiVQUk9CRSVcbiIpKSB7Ci0gICAgICAgICAgICBwYXJzZWQgPTNEIHRydWU7Ci0gICAgICAg
ICAgICBpbnQgbmV4dFBvcyA9M0QgbGFmLmluZGV4T2YoUFJPQkVfTkVYVCk7Ci0gICAgICAgICAg
ICBTdHJpbmcgc2luZ2xlID0zRCAiIjsKLSAgICAgICAgICAgIGlmIChuZXh0UG9zID4gMCkgewot
ICAgICAgICAgICAgICAgIHNpbmdsZSA9M0QgbGFmLnN1YnN0cmluZygwLCBuZXh0UG9zICsgMSk7
Ci0gICAgICAgICAgICAgICAgbGFmID0zRCBsYWYuc3Vic3RyaW5nKG5leHRQb3MgKyAxKTsKLSAg
ICAgICAgICAgICAgICB0cnkgewotICAgICAgICAgICAgICAgICAgICByZWFkQWxsKHNpbmdsZSk7
Ci0gICAgICAgICAgICAgICAgICAgIHRoaXMud2FybmluZ3MucHV0QWxsKHByb2R1Y2VyLmdldFdh
cm5pbmdzKCkpOwotICAgICAgICAgICAgICAgICAgICB0aGlzLmVycm9ycy5wdXRBbGwocHJvZHVj
ZXIuZ2V0RXJyb3JzKCkpOwotICAgICAgICAgICAgICAgICAgICB3cml0ZUFsbCh1c2VySW5mbyk7
Ci0gICAgICAgICAgICAgICAgICAgIHRoaXMucHJvZHVjZXIucmVzZXQoKTsKLSAgICAgICAgICAg
ICAgICAgICAgdGhpcy53cml0ZXIucmVzZXQoKTsKLSAgICAgICAgICAgICAgICB9Ci0gICAgICAg
ICAgICAgICAgY2F0Y2ggKExhZlBhcnNlckV4Y2VwdGlvbiBscGUpIHsKLSAgICAgICAgICAgICAg
ICAgICAgTWFwPFN0cmluZywgTGlzdDxSZXBvcnRJdGVtPj4gcEVyciA9M0QgcHJvZHVjZXIuZ2V0
RXJyPQpvcnMoKTsKLSAgICAgICAgICAgICAgICAgICAgaWYgKHBFcnIuaXNFbXB0eSgpKSB7Ci0g
ICAgICAgICAgICAgICAgICAgICAgICBMaXN0PFJlcG9ydEl0ZW0+IGVyciA9M0QgbmV3IEFycmF5
TGlzdDxSZXBvcnRJdGVtPj0KKCk7Ci0gICAgICAgICAgICAgICAgICAgICAgICBlcnIuYWRkKG5l
dyBSZXBvcnRJdGVtKCJwYXJzZXIiLCBscGUuZ2V0TWVzc2FnZSgpLD0KIDY3MykpOwotICAgICAg
ICAgICAgICAgICAgICAgICAgdGhpcy5lcnJvcnMucHV0KCJwYXJzZXIiLCBlcnIpOwotICAgICAg
ICAgICAgICAgICAgICAgICAgdGhpcy53YXJuaW5ncy5wdXQoInBhcnNlciIsIG5ldyBBcnJheUxp
c3Q8UmVwb3J0SXQ9CmVtPigpKTsKLSAgICAgICAgICAgICAgICAgICAgfQotICAgICAgICAgICAg
ICAgICAgICBlbHNlIHsKLSAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMuZXJyb3JzLnB1dEFs
bChwRXJyKTsKLSAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMud2FybmluZ3MucHV0QWxsKHBy
b2R1Y2VyLmdldFdhcm5pbmdzKCkpOwotICAgICAgICAgICAgICAgICAgICB9Ci0gICAgICAgICAg
ICAgICAgICAgIHRoaXMucHJvZHVjZXIucmVzZXQoKTsKLSAgICAgICAgICAgICAgICAgICAgY29u
dGludWU7Ci0gICAgICAgICAgICAgICAgfQotICAgICAgICAgICAgfQotICAgICAgICAgICAgZWxz
ZSB7Ci0gICAgICAgICAgICAgICAgdHJ5IHsKLSAgICAgICAgICAgICAgICAgICAgcmVhZEFsbChs
YWYpOwotICAgICAgICAgICAgICAgICAgICB0aGlzLndhcm5pbmdzLnB1dEFsbChwcm9kdWNlci5n
ZXRXYXJuaW5ncygpKTsKLSAgICAgICAgICAgICAgICAgICAgdGhpcy5lcnJvcnMucHV0QWxsKHBy
b2R1Y2VyLmdldEVycm9ycygpKTsKLSAgICAgICAgICAgICAgICAgICAgd3JpdGVBbGwodXNlcklu
Zm8pOwotICAgICAgICAgICAgICAgICAgICB0aGlzLnByb2R1Y2VyLnJlc2V0KCk7Ci0gICAgICAg
ICAgICAgICAgICAgIHRoaXMud3JpdGVyLnJlc2V0KCk7Ci0gICAgICAgICAgICAgICAgICAgIGxh
ZiA9M0QgIiI7Ci0gICAgICAgICAgICAgICAgfQotICAgICAgICAgICAgICAgIGNhdGNoIChMYWZQ
YXJzZXJFeGNlcHRpb24gbHBlKSB7Ci0gICAgICAgICAgICAgICAgICAgIE1hcDxTdHJpbmcsIExp
c3Q8UmVwb3J0SXRlbT4+IHBFcnIgPTNEIHByb2R1Y2VyLmdldEVycj0Kb3JzKCk7Ci0gICAgICAg
ICAgICAgICAgICAgIGlmIChwRXJyLmlzRW1wdHkoKSkgewotICAgICAgICAgICAgICAgICAgICAg
ICAgTGlzdDxSZXBvcnRJdGVtPiBlcnIgPTNEIG5ldyBBcnJheUxpc3Q8UmVwb3J0SXRlbT49Cigp
OwotICAgICAgICAgICAgICAgICAgICAgICAgZXJyLmFkZChuZXcgUmVwb3J0SXRlbSgicGFyc2Vy
IiwgbHBlLmdldE1lc3NhZ2UoKSw9CiA2NzMpKTsKLSAgICAgICAgICAgICAgICAgICAgICAgIHRo
aXMuZXJyb3JzLnB1dCgicGFyc2VyIiwgZXJyKTsKLSAgICAgICAgICAgICAgICAgICAgICAgIHRo
aXMud2FybmluZ3MucHV0KCJwYXJzZXIiLCBuZXcgQXJyYXlMaXN0PFJlcG9ydEl0PQplbT4oKSk7
Ci0gICAgICAgICAgICAgICAgICAgIH0KLSAgICAgICAgICAgICAgICAgICAgZWxzZSB7Ci0gICAg
ICAgICAgICAgICAgICAgICAgICB0aGlzLmVycm9ycy5wdXRBbGwocEVycik7Ci0gICAgICAgICAg
ICAgICAgICAgICAgICB0aGlzLndhcm5pbmdzLnB1dEFsbChwcm9kdWNlci5nZXRXYXJuaW5ncygp
KTsKLSAgICAgIC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LSAgICAg
ICAgYm9vbGVhbiBzdHJpbmcgPTNEIGZhbHNlOwotICAgICAgICBib29sZWFuIG11bHRpVmFsdWUg
PTNEIGZhbHNlOwotICAgICAgICBTdHJpbmcga2V5U3RyaW5nID0zRCAiIjsKLSAgICAgICAgU3Ry
aW5nIHZhbHVlU3RyaW5nID0zRCAiIjsKLSAgICAgICAgU3RyaW5nIGhlYWRlclN0cmluZyA9M0Qg
IiI7Ci0gICAgICAgIGZvciAoaW50IGkgPTNEIDA7IGkgPCBjb250ZW50Lmxlbmd0aCgpOyBpKysp
IHsKLSAgICAgICAgICAgIGNoYXIgY3VycmVudCA9M0QgY29udGVudC5jaGFyQXQoaSk7Ci0KLSAg
ICAgICAgICAgIGlmICgoY3VycmVudCA9M0Q9M0QgJyInIHx8IChjdXJyZW50ID0zRD0zRCAnICcg
JiYgIXN0cmluZykpICYmCi0gICAgICAgICAgICAgICAgdmFsdWUgJiYKLSAgICAgICAgICAgICAg
ICBpIDwgY29udGVudC5sZW5ndGgoKSAtIDEgJiYKLSAgICAgICAgICAgICAgICAoY29udGVudC5j
aGFyQXQoaSArIDEpICE9M0QgJ1xuJyAmJgotICAgICAgICAgICAgICAgIGNvbnRlbnQuY2hhckF0
KGkgKyAxKSAhPTNEICdccicpKSB7Ci0gICAgICAgICAgICAgICAgbXVsdGlWYWx1ZSA9M0QgdHJ1
ZTsKLSAgICAgICAgICAgIH0KLQotICAgICAgICAgICAgaWYgKGN1cnJlbnQgPTNEPTNEICciJyAm
JiAhc3RyaW5nKSB7Ci0gICAgICAgICAgICAgICAgc3RyaW5nID0zRCB0cnVlOwotICAgICAgICAg
ICAgfQotICAgICAgICAgICAgZWxzZSBpZiAoY3VycmVudCA9M0Q9M0QgJyInICYmIHN0cmluZykg
ewotICAgICAgICAgICAgICAgIHN0cmluZyA9M0QgZmFsc2U7Ci0gICAgICAgICAgICB9Ci0KLSAg
ICAgICAgICAgIGlmIChjdXJyZW50ID0zRD0zRCAnICcgJiYgIXZhbHVlKSB7Ci0gICAgICAgICAg
ICAgICAga2V5ID0zRCBmYWxzZTsKLSAgICAgICAgICAgICAgICB3aGl0ZSA9M0QgdHJ1ZTsKLSAg
ICAgICAgICAgICAgICBjb250aW51ZTsKLSAgICAgICAgICAgIH0KLSAgICAgICAgICAgIGVsc2Ug
aWYgKGN1cnJlbnQgIT0zRCAnICcgJiYKLSAgICAgICAgICAgICAgICBjdXJyZW50ICE9M0QgJ1xu
JyAmJgotICAgICAgICAgICAgICAgIGN1cnJlbnQgIT0zRCAnXHInICYmCi0gICAgICAgICAgICAg
ICAgd2hpdGUpIHsKLSAgICAgICAgICAgICAgICB2YWx1ZSA9M0QgdHJ1ZTsKLSAgICAgICAgICAg
ICAgICB3aGl0ZSA9M0QgZmFsc2U7Ci0gICAgICAgICAgICB9Ci0gICAgICAgICAgICBlbHNlIGlm
IChjdXJyZW50ID0zRD0zRCAnJScgJiYgIWhlYWRlciAmJiAhdmFsdWUpIHsKLSAgICAgICAgICAg
ICAgICBoZWFkZXJTdHJpbmcgPTNEICIiOwotICAgICAgICAgICAgICAgIHByb2R1Y2VyLmZpbmlz
aE9ydCgpOwotICAgICAgICAgICAgICAgIGtleSA9M0QgZmFsc2U7Ci0gICAgICAgICAgICAgICAg
aGVhZGVyID0zRCB0cnVlOwotICAgICAgICAgICAgfQotICAgICAgICAgICAgZWxzZSBpZiAoKGN1
cnJlbnQgPTNEPTNEICdcbicgfHwgY3VycmVudCA9M0Q9M0QgJ1xyJykgJiYgaGVhZGU9CnIpIHsK
LSAgICAgICAgICAgICAgICBoZWFkZXIgPTNEIGZhbHNlOwotICAgICAgICAgICAgICAgIGtleSA9
M0QgdHJ1ZTsKLSAgICAgICAgICAgICAgICBpZiAoIWRyeVJ1bikgewotICAgICAgICAgICAgICAg
ICAgICBpZiAoaGVhZGVyU3RyaW5nLmNvbnRhaW5zKCJNRVNTVU5HIikpIHsKLSAgICAgICAgICAg
ICAgICAgICAgICAgIHByb2R1Y2VyLm5ld01lc3N1bmcoKTsKLSAgICAgICAgICAgICAgICAgICAg
fQotICAgICAgICAgICAgICAgICAgICBpZiAoaGVhZGVyU3RyaW5nLmNvbnRhaW5zKCJPUlQiKSkg
ewotICAgICAgICAgICAgICAgICAgICAgICAgcHJvZHVjZXIubmV3T3J0KCk7Ci0gICAgICAgICAg
ICAgICAgICAgIH0KLSAgICAgICAgICAgICAgICB9Ci0gICAgICAgICAgICAgICAgaWYgKGhlYWRl
clN0cmluZy5jb250YWlucygiJUVOREUlIikpIHsKLSAgICAgICAgICAgICAgICAgICAgaWYgKCFk
cnlSdW4pIHsKLSAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMucHJvZHVjZXIubmV3TWVzc3Vu
ZygpOwotICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy5wcm9kdWNlci5uZXdPcnQoKTsKLSAg
ICAgICAgICAgICAgICAgICAgfQotICAgICAgICAgICAgICAgICAgICByZXR1cm47Ci0gICAgICAg
ICAgICAgICAgfQotICAgICAgICAgICAgICAgIGNvbnRpbnVlOwotICAgICAgICAgICAgfQotICAg
ICAgICAgICAgZWxzZSBpZiAoY3VycmVudCA9M0Q9M0QgJyInICYmICF2YWx1ZSkgewotICAgICAg
ICAgICAgICAgIHZhbHVlID0zRCB0cnVlOwotICAgICAgICAgICAgfQotICAgICAgICAgICAgZWxz
ZSBpZiAoKGN1cnJlbnQgPTNEPTNEICdcbicgfHwgY3VycmVudCA9M0Q9M0QgJ1xyJykgJiYgdmFs
dWU9CiAmJiAhc3RyaW5nKSB7Ci0gICAgICAgICAgICAgICAgaWYgKCFtdWx0aVZhbHVlICYmIHZh
bHVlU3RyaW5nLnN0YXJ0c1dpdGgoIlwiIikpIHsKLSAgICAgICAgICAgICAgICAgICAgdmFsdWVT
dHJpbmcgPTNECi0gICAgICAgICAgICAgICAgICAgICAgICB2YWx1ZVN0cmluZy5zdWJzdHJpbmco
MSwgdmFsdWVTdHJpbmcubGVuZ3RoKCkgLSAxKTsKLSAgICAgICAgICAgICAgICB9Ci0gICAgICAg
ICAgICAgICAgdmFsdWUgPTNEIGZhbHNlOwotICAgICAgICAgICAgICAgIG11bHRpVmFsdWUgPTNE
IGZhbHNlOwotICAgICAgICAgICAgICAgIGtleSA9M0QgdHJ1ZTsKLSAgICAgICAgICAgICAgICBp
ZiAoIXRoaXMuZHJ5UnVuKSB7Ci0gICAgICAgICAgICAgICAgICAgIHByb2R1Y2VyLmFkZERhdGEo
a2V5U3RyaW5nLCB2YWx1ZVN0cmluZyk7Ci0gICAgICAgICAgICAgICAgfQotICAgICAgICAgICAg
ICAgIGtleVN0cmluZyA9M0QgIiI7Ci0gICAgICAgICAgICAgICAgdmFsdWVTdHJpbmcgPTNEICIi
OwotICAgICAgICAgICAgICAgIGNvbnRpbnVlOwotICAgICAgICAgICAgfQotICAgICAgICAgICAg
aWYgKChjdXJyZW50ID0zRD0zRCAnXG4nIHx8IGN1cnJlbnQgPTNEPTNEICdccicpICYmIChrZXkg
fHwgd2g9Cml0ZSkpIHsKLSAgICAgICAgICAgICAgICBSZXBvcnRJdGVtIGl0ZW0gPTNEIG5ldyBS
ZXBvcnRJdGVtKCJwYXJzZXIiLCAiZ2VuZXJhbCBlcnJvPQpyIiwgNjAzKTsKLSAgICAgICAgICAg
ICAgICBMaXN0PFJlcG9ydEl0ZW0+IGl0ZW1zID0zRCBuZXcgQXJyYXlMaXN0PFJlcG9ydEl0ZW0+
KCk7Ci0gICAgICAgICAgICAgICAgaXRlbXMuYWRkKGl0ZW0pOwotICAgICAgICAgICAgICAgIHRo
aXMuYXBwZW5kRXJyb3JzKCJwYXJzZXIiLCBpdGVtcyk7Ci0gICAgICAgICAgICAgICAgcmV0dXJu
OwotICAgICAgICAgICAgfQotCi0gICAgICAgICAgICBpZiAoa2V5KSB7Ci0gICAgICAgICAgICAg
ICAga2V5U3RyaW5nICs9M0QgY3VycmVudDsKLSAgICAgICAgICAgIH0KLSAgICAgICAgICAgIGVs
c2UgaWYgKHZhbHVlKSB7Ci0gICAgICAgICAgICAgICAgdmFsdWVTdHJpbmcgKz0zRCBjdXJyZW50
OwotICAgICAgICAgICAgfQotICAgICAgICAgICAgZWxzZSBpZiAoaGVhZGVyKSB7Ci0gICAgICAg
ICAgICAgICAgaGVhZGVyU3RyaW5nICs9M0QgY3VycmVudDsKLSAgICAgICAgICAgIH0KLSAgICAg
ICAgfQotICAgICAgICBpZiAoIWRyeVJ1bikgewotICAgICAgICAgICAgdGhpcy5wcm9kdWNlci5u
ZXdNZXNzdW5nKCk7Ci0gICAgICAgICAgICB0aGlzLnByb2R1Y2VyLm5ld09ydCgpOwotICAgICAg
ICB9Ci0gICAgfQotCi0gICAgLyoqCi0gICAgICogQHJldHVybiBpZiBvYmplY3RzIGFyZSBvciBu
b3QuCi0gICAgICovCi0gICAgcHVibGljIGJvb2xlYW4gaXNEcnlSdW4oKSB7Ci0gICAgICAgIHJl
dHVybiBkcnlSdW47Ci0gICAgfQotCi0gICAgLyoqCi0gICAgICogSWYgc2V0IHRvIHRydWUsIG5v
IG9iamVjdHMgd2lsbCBiZSBjcmVhdGVkIGFuZCB3cml0dGVuIHRvIGRhdGFiYXNlLgotICAgICAq
Ci0gICAgICogQHBhcmFtIGRyeVJ1bgotICAgICAqLwotICAgIHB1YmxpYyB2b2lkIHNldERyeVJ1
bihib29sZWFuIGRyeVJ1bikgewotICAgICAgICB0aGlzLmRyeVJ1biA9M0QgZHJ5UnVuOwotICAg
IH0KLQotICAgIC8qKgotICAgICAqIEByZXR1cm4gdGhlIHdhcm5pbmdzCi0gICAgICovCi0gICAg
cHVibGljIE1hcDxTdHJpbmcsIExpc3Q8UmVwb3J0SXRlbT4+IGdldFdhcm5pbmdzKCkgewotICAg
ICAgICByZXR1cm4gd2FybmluZ3M7Ci0gICAgfQotCi0gICAgLyoqCi0gICAgICogQHJldHVybiB0
aGUgZXJyb3JzCi0gICAgICovCi0gICAgcHVibGljIE1hcDxTdHJpbmcsIExpc3Q8UmVwb3J0SXRl
bT4+IGdldEVycm9ycygpI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3J0Rm9ybWF0ID0zRCBmb3JtYXQuZ2V0Rm9ybWF0KCJvcnQiKTsKLSAgICB9Ci0K
LSAgICAvKioKLSAgICAgKiBBZGQgZGF0YSB0byB0aGUgcHJvZHVjZXIuCi0gICAgICogVGhpcyB0
cmlnZ2VycyB0aGUgcHJvZHVjZXIgdG8gY3JlYXRlIGEgbmV3IG9iamVjdCBvciBhZGQgZGF0YSB0
bwotICAgICAqIGV4aXN0aW5nIG9iamVjdHMuCi0gICAgICoKLSAgICAgKiBAcGFyYW0ga2V5ICAg
ICAgIFRoZSBrZXkuCi0gICAgICogQHBhcmFtIHZhbHVlcyAgICBUaGUgdmFsdWUKLSAgICAgKiBA
dGhyb3dzIExhZlBhcnNlckV4Y2VwdGlvbgotICAgICAqLwotICAgIHB1YmxpYyB2b2lkIGFkZERh
dGEoU3RyaW5nIGtleSwgT2JqZWN0IHZhbHVlcykKLSAgICB0aHJvd3MgTGFmUGFyc2VyRXhjZXB0
aW9uIHsKLSAgICAgICAgU3RyaW5nIGxLZXkgPTNEIGtleS50b0xvd2VyQ2FzZSgpOwotICAgICAg
ICBpZihsS2V5LmVxdWFscygicHJvYmVua29tbWVudGFyIikpIHsKLSAgICAgICAgICAgIEtvbW1l
bnRhclAga29tbWVudGFyID0zRCBuZXcgS29tbWVudGFyUCgpOwotICAgICAgICAgICAga29tbWVu
dGFyLnNldFByb2JlSWQodGhpcy5wcm9iZS5nZXRJZCgpKTsKLSAgICAgICAgICAgIHRoaXMucEtv
bW1lbnRhcmUuYWRkKAotICAgICAgICAgICAgICAgIG1hcHBlci5hZGRBdHRyaWJ1dGUobEtleSwg
dmFsdWVzLCBrb21tZW50YXIpKTsKLSAgICAgICAgfQotICAgICAgICBlbHNlIGlmIChsS2V5LmVx
dWFscygia29tbWVudGFyIikpIHsKLSAgICAgICAgICAgIEtvbW1lbnRhck0ga29tbWVudGFyID0z
RCBuZXcgS29tbWVudGFyTSgpOwotICAgICAgICAgICAga29tbWVudGFyLnNldE1lc3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AgICAgICBMaXN0PFJlcG9ydEl0ZW0+IGVyciA9M0Qg
dGhpcy5lcnJvcnMuZ2V0KGVrZXkpOwotICAgICAgICAgICAgICAgIGlmIChlcnIgPTNEPTNEIG51
bGwpIHsKLSAgICAgICAgICAgICAgICAgICAgdGhpcy5lcnJvcnMucHV0KGVrZXksIG1hcHBlci5n
ZXRFcnJvcnMoKSk7Ci0gICAgICAgICAgICAgICAgfQotICAgICAgICAgICAgICAgIGVsc2Ugewot
ICAgICAgICAgICAgICAgICAgICBlcnIuYWRkQWxsKG1hcHBlci5nZXRFcnJvcnMoKSk7Ci0gICAg
ICAgICAgICAgICAgfQotICAgICAgICAgICAgfQotICAgICAgICB9Ci0gICAgICAgIGVsc2UgaWYg
KGxLZXkuZXF1YWxzKCJwemJfcyIpKSB7Ci0gICAgICAgICAgICBadXNhdHpXZXJ0IHdlcnQgPTNE
IG5ldyBadXNhdHpXZXJ0KCk7Ci0gICAgICAgICAgICBadXNhdHpXZXJ0IHp1c2F0eldlcnQgPTNE
IG1hcHBlci5hZGRBdHRyaWJ1dGVTKGxLZXksIHZhbHVlcywgdz0KZXJ0KTsKLSAgICAgICAgICAg
IGlmICh6dXNhdHpXZXJ0ICE9M0QgbnVsbCkgewotICAgICAgICAgICAgICAgIHp1c2F0eldlcnQu
c2V0UHJvYmVJZChwcm9iZS5nZXRJZCgpKTsKLSAgICAgICAgICAgICAgICB0aGlzLnp1c2F0endl
cnRlLmFkZCh6dXNhdHpXZXJ0KTsKLSAgICAgICAgICAgIH0KLSAgICAgICAgICAgIGVsc2Ugewot
ICAgICAgICAgICAgICAgIFN0cmluZyBla2V5ID0zRCBwcm9iZS5nZXRJZCgpID0zRD0zRCBudWxs
ID8KLSAgICAgICAgICAgICAgICAgICAgInByb2JlSWQiIDogcHJvYmUuZ2V0SWQoKS50b1N0cmlu
ZygpOwotICAgICAgICAgICAgICAgIExpc3Q8UmVwb3J0SXRlbT4gZXJyID0zRCB0aGlzLmVycm9y
cy5nZXQoZ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Nz
dW5nKCkgewotICAgICAgICBpZiAodGhpcy5tZXNzdW5nICE9M0QgbnVsbCkgewotICAgICAgICAg
ICAgaWYgKHRoaXMubWVzc3VuZy5nZXRGZXJ0aWcoKSA9M0Q9M0QgbnVsbCkgewotICAgICAgICAg
ICAgICAgIHRoaXMubWVzc3VuZy5zZXRGZXJ0aWcoZmFsc2UpOwotICAgICAgICAgICAgfQotICAg
ICAgICAgICAgaWYgKHRoaXMubWVzc3VuZy5nZXRHZXBsYW50KCkgPTNEPTNEIG51bGwpIHsKLSAg
ICAgICAgICAgICAgICB0aGlzLm1lc3N1bmcuc2V0R2VwbGFudChmYWxzZSk7Ci0gICAgICAgICAg
ICB9Ci0gICAgICAgICAgICB0aGlzLm1lc3N1bmdlbi5hZGQodGhpcy5tZXNzdW5nKTsKLSAgICAg
ICAgfQotICAgICAgICB0aGlzLm1lc3N1bmcgPTNEIG5ldyBNZXNzdW5nKCk7Ci0gICAgfQotCi0g
ICAgLyoqCi0gICAgICogQWRkIHRoZSB7QGxpbmsgT3J0fSBhbmQge0BsaW5rIExPcnR9IGVudGl0
aWVzIHRvIHRoZSBsaXN0cyBhbmQgY3JlYT0KdGUKLSAgICAgKiBhIG5ldyB7QGxpbmsgT3J0Q3Jl
YXRvcn0uCi0gICAgICovCi0gICAgcHVibGljIHZvaWQgbmV3T3J0KCkgewotICAgICAgICBpZiAo
dGhpcy5vcnQgIT0zRCBudWxsKSB7Ci0gICAgICAgICAgICBPcnQgbyA9M0QgdGhpcy5vcnQudG9P
cnQoKTsKLSAgICAgICAgICAgIGlmIChvICE9M0QgbnVsbCkgewotICAgICAgICAgICAgICAgIHRo
aXMub3J0ZS5hZGQobyk7Ci0gICAgICAgICAgICB9Ci0gICAgICAgICAgICBPcnRzenVvcmRudW5n
IGxvID0zRCB0aGlzLm9ydC50b09ydHN6dW9yZG51bmcoKTsKLSAgICAgICAgICAgIGlmIChsbyAh
PTNEIG51bGwpIHsKLSAgICAgICAgICAgICAgICB0aGlzLm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gICAgIH0KLSAgICAgICAgcmV0dXJuIHRoaXMud2FybmluZ3M7Ci0gICAgfQotCi0gICAg
LyoqCi0gICAgICogQHJldHVybiB0aGUgZXJyb3JzCi0gICAgICovCi0gICAgcHVibGljIE1hcDxT
dHJpbmcsIExpc3Q8UmVwb3J0SXRlbT4+IGdldEVycm9ycygpIHsKLSAgICAgICAgaWYgKHRoaXMu
cHJvYmUgPTNEPTNEIG51bGwpIHsKLSAgICAgICAgICAgIHJldHVybiB0aGlzLmVycm9yczsKLSAg
ICAgICAgfQotICAgICAgICBpZiAobWFwcGVyLmdldEVycm9ycygpID0zRD0zRCBudWxsIHx8IG1h
cHBlci5nZXRFcnJvcnMoKS5zaXplKCkgPQo9M0Q9M0QgMCkgewotICAgICAgICAgICAgcmV0dXJu
IHRoaXMuZXJyb3JzOwotICAgICAgICB9Ci0gICAgICAgIFN0cmluZyBrZXkgPTNEIHByb2JlLmdl
dElkQWx0KCkgPTNEPTNEIG51bGwgPwotICAgICAgICAgICAgInByb2JlSWQiIDogcHJvYmUuZ2V0
SWRBbHQoKTsKLSAgICAgICAgTGlzdDxSZXBvcnRJdGVtPiBlcnIgPTNEIHRoaXMuZXJyb3JzLmdl
dChrZXkpOwotICAgICAgICBpZiAoZXJyID0zRD0zRCBudWxsKSB7Ci0gICAgICAgICAgICB0aGlz
LmVycm9ycy5wdXQoa2V5LCBtYXBwZXIuZ2V0RXJyb3JzKCkpOwotICAgICAgICB9Ci0gICAgICAg
IGVsc2UgewotICAgICAgICAgICAgZXJyLmFkZEFsbChtYXBwZXIuZ2V0RXJyb3JzKCkpOwotICAg
ICAgICB9Ci0gICAgICAgIHJldHVybiB0aGlzLmVycm9yczsKLSAgICB9Ci0KLSAgICBwdWJsaWMg
dm9pZCBmaW5pc2hPcnQoKSB7Ci0gICAgICAgIGlmIChvcnRlLmlzRW1wdHkoKSkgewotICAgICAg
ICAgICAgcmV0dXJuOwotICAgICAgICB9Ci0gICAgfQotfQpkaWZmIC1yIDIxYW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gICAgICAgICAgIHJldHVybiB0aGlzLm1lc3N1bmc7
CisgICAgICAgIH0KKworICAgICAgICBwdWJsaWMgdm9pZCBhZGRLb21tZW50YXIoTWFwPFN0cmlu
ZywgU3RyaW5nPiBrb21tZW50YXIpIHsKKyAgICAgICAgICAgIHRoaXMua29tbWVudGFyLmFkZChr
b21tZW50YXIpOworICAgICAgICB9CisKKyAgICAgICAgcHVibGljIExpc3Q8TWFwPFN0cmluZywg
U3RyaW5nPj4gZ2V0S29tbWVudGFyZSgpIHsKKyAgICAgICAgICAgIHJldHVybiB0aGlzLmtvbW1l
bnRhcjsKKyAgICAgICAgfQorCisgICAgICAgIHB1YmxpYyB2b2lkIGFkZFp1c2F0endlcnQoTWFw
PFN0cmluZywgU3RyaW5nPiB6dXNhdHp3ZXJ0KSB7CisgICAgICAgICAgICB0aGlzLnp1c2F0endl
cnQuYWRkKHp1c2F0endlcnQpOworICAgICAgICB9CisKKyAgICAgICAgcHVibGljIExpc3Q8TWFw
PFN0cmluZywgU3RyaW5nPj4gZ2V0WnVzYXR6d2VydGUoKSB7CisgICAgICAgICAgICByZXR1cm4g
dGhpcy56dXNhdHp3ZXJ0OworICAgICAgICB9CisKKyAgICAgICAgcHVibGljIHZvaWQgYWRkT3J0
KE1hcDxTdHJpbmcsIFN0cmluZz4gb3J0KSB7CisgICAgICAgICAgICB0aGlzLm9ydC5hZGQob3J0
KTsKKyAgICAgICAgfQorCisgICAgICAgIHB1YmxpYyBMaXN0PE1hcDxTdHJpbmcsIFN0cmluZz4+
IGdldE9ydGUoKSB7CisgICAgICAgICAgICByZXR1cm4gdGhpcy5vcnQ7CisgICAgICAgIH0KKyAg
ICB9OworCisgICAgcHVibGljIGNsYXNzIE1lc3N1bmcgeworICAgICAgICBwcml2YXRlIE1hcDxT
dHJpbmcsIFN0cmluZz4gYXR0cmlidXRlczsKKyAgICAgICAgcHJpdmF0ZSBMaXN0PE1hcDxTdHJp
bmcsIFN0cmluZz4+IG1lc3N3ZXJ0Owor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CiB7Ci0gICAgICAgIG9ydC5zZXRQcm9iZUlk
KHRoaXMuY3VycmVudFByb2JlSWQpOwotICAgICAgICByZXBvc2l0b3J5LmNyZWF0ZShvcnQsICJs
YW5kIik7Ci0gICAgICAgIHJldHVybiB0cnVlOwotICAgIH0KLQotICAgIC8qKgotICAgICAqIFdy
aXRlIG5ldyB7QGxpbmsgTEtvbW1lbnRhclB9IG9iamVjdHMgdG8gdGhlIGRhdGFiYXNlLgotICAg
ICAqCi0gICAgICogQHBhcmFtIGF1dGggICAgICAgICAgVGhlIGF1dGhlbnRpY2F0aW9uIGluZm9y
bWF0aW9uLgotICAgICAqIEBwYXJhbSBrb21tZW50YXJlICAgIExpc3Qgb2Yge0BsaW5rIExLb21t
ZW50YXJQfSBvYmplY3RzLgotICAgICAqIEByZXR1cm4gc3VjY2VzcwotICAgICAqLwotICAgIHB1
YmxpYyBib29sZWFuIHdyaXRlUHJvYmVuS29tbWVudGFyZSgKLSAgICAgICAgVXNlckluZm8gdXNl
ckluZm8sCi0gICAgICAgIExpc3Q8S29tbWVudGFyUD4ga29tbWVudGFyZQotICAgICkgewotICAg
ICAgICBmb3IoS29tbWVudGFyUCBrb21tZW50YXI6IGtvbW1lbnRhcmUpIHsKLSAgICAgICAgICAg
IGtvbW1lbnRhci5zZXRQcm9iZUlkKHRoaXMuY3VycmVudFByb2JlSWQpOwotICAgICAgICAgICAg
cmVwb3NpdG9yeS5jcmVhdGUoa29tbWVudGFyLCAibGFuZCIpOwotICAgICAgICB9Ci0gICAgICAg
IHJldHVybiB0cnVlOwotICAgIH0KLQotICAgIC8qKgotICAgICAqIFdyaXRlIG5ldyB7QGxpbmsg
TEtvbW1lbnRhck19IG9iamVjdHMgdG8gdGhlIGRhdGFiYXNlLgotICAgICAqCi0gICAgICogQHBh
cmFtIGF1dGggICAgICAgICAgVGhlIGF1dGhlbnRpY2F0aW9uIGluZm9ybWF0aW9uLgotICAgICAq
IEBwYXJhbSBrb21tZW50YXJlICAgIExpc3Q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VsOwotICAgIH0KLQotICAgIC8qKgotICAg
ICAqIEByZXR1cm4gdGhlIGtvb3JkQXJ0Ci0gICAgICovCi0gICAgcHVibGljIFN0cmluZyBnZXRL
b29yZEFydCgpIHsKLSAgICAgICAgcmV0dXJuIGtvb3JkQXJ0OwotICAgIH0KLQotICAgIC8qKgot
ICAgICAqIEBwYXJhbSBrb29yZEFydCB0aGUga29vcmRBcnQgdG8gc2V0Ci0gICAgICovCi0gICAg
cHVibGljIHZvaWQgc2V0S29vcmRBcnQoU3RyaW5nIGtvb3JkQXJ0KSB7Ci0gICAgICAgIHRoaXMu
a29vcmRBcnQgPTNEIGtvb3JkQXJ0OwotICAgIH0KLQotICAgIC8qKgotICAgICAqIEByZXR1cm4g
dGhlIGtvb3JkCi0gICAgICovCi0gICAgcHVibGljIFN0cmluZyBnZXRLb29yZCgpIHsKLSAgICAg
ICAgcmV0dXJuIGtvb3JkOwotICAgIH0KLQotICAgIC8qKgotICAgICAqIEBwYXJhbSBrb29yZCB0
aGUga29vcmQgdG8gc2V0Ci0gICAgICovCi0gICAgcHVibGljIHZvaWQgc2V0S29vcmQoU3RyaW5n
IGtvb3JkKSB7Ci0gICAgICAgIHRoaXMua29vcmQgPTNEIGtvb3JkOwotICAgIH0KLQotICAgIC8q
KgotICAgICAqIEByZXR1cm4gdGhlIGtvb3JkUwotICAgICAqLwotICAgIHB1YmxpYyBTdHJpbmcg
Z2V0S29vcmRTKCkgewotICAgICAgICByZXR1cm4ga29vcmRTOwotICAgIH0KLQotICAgIC8qKgot
ICAgICAqIEBwYXJhbSBrb29yZFMgdGhlIGtvb3JkUyB0byBzZXQKLSAgICAgKi8KLSAgICBwdWJs
aWMgdm9pZCBzZXRLb29yZFMoU3RyaW5nIGtvb3JkUykgewotICAgICAgICB0aGlzLmtvb3JkUyA9
M0Qga29vcmRTOwotICAgIH0KLQotICAgIC8qKgotICAgICAqIEByZXR1cm4gdGhlIG51dHMKLSAg
ICAgKi8KLSAgICBwdWJsaWMgU3RyaW5nIGdldE51dHMoKSB7Ci0gICAgICAgIHJldHVybiBudXRz
OwotICAgIH0KLQotICAgIC8qKgotICAgICAqIEBwYXJhbSBudXRzIHRoZSBudXRzIHRvIHNldAot
ICAgICAqLwotICAgIHB1YmxpYyB2b2lkIHNldE51dHMoU3RyaW5nIG51dHMpIHsKLSAgICAgICAg
dGhpcy5udXRzID0zRCBudXRzOwotICAgIH0KLQotICAgIC8qKgotICAgICAqIEByZXR1cm4gdGhl
IGhvZWhlCi0gICAgICovCi0gICAgcHVibGljIFN0cmluZyBnZXRIb2VoZSgpIHsKLSAgICAgICAg
cmV0dXJuIGhvZWhlOwotICAgIH0KLQotICAgIC8qKgotICAgICAqIEBwYXJhbSBob2VoZSB0aGUg
aG9laGUgdG8gc2V0Ci0gICAgICovCi0gICAgcHVibGljIHZvaWQgc2V0SG9laGUoU3RyaW5nIGhv
ZWhlKSB7Ci0gICAgICAgIHRoaXMuaG9laGUgPTNEIGhvZWhlOwotICAgIH0KLQotICAgIC8qKgot
ICAgICAqIEByZXR1cm4gdGhlIGJlemVpY2h1bmcKLSAgICAgKi8KLSAgICBwdWJsaWMgU3RyaW5n
IGdldEJlemVpY2hudW5nKCkgewotICAgICAgICByZXR1cm4gYmV6ZWljaG51bmc7Ci0gICAgfQot
Ci0gICAgLyoqCi0gICAgICogQHBhcmFtIGJlemVpY2hudW5nIHRoZSBiZXplaWNobnVuZyB0byBz
ZXQKLSAgICAgKi8KLSAgICBwdWJsaWMgdm9pZCBzZXRCZXplaWNobnVuZyhTdHJpbmcgYmV6ZWlj
aG51bmcpIHsKLSAgICAgICAgdGhpcy5iZXplaWNobnVuZyA9M0QgYmV6ZWljaG51bmc7Ci0gICAg
fQotCi0gICAgLyoqCi0gICAgICogQHJldHVybiB0aGUgZ2VtTmFtZQotICAgICAqLwotICAgIHB1
YmxpYyBTdHJpbmcgZ2V0R2VtTmFtZSgpIHsKLSAgICAgICAgcmV0dXJuIGdlbU5hbWU7Ci0gICAg
fQotCi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gICAgICAgIHJlcG9zaXRvcnkuZW50aXR5TWFuYWdlcigic3RhbW0iKSwK
LSAgICAgICAgICAgICAgICAgICAgU3RhYXQuY2xhc3MpOwotICAgICAgICAgICAgYnVpbGRlci5h
bmQoImlkIiwgdGhpcy5sYW5kUyk7Ci0gICAgICAgICAgICBAU3VwcHJlc3NXYXJuaW5ncygidW5j
aGVja2VkIikKLSAgICAgICAgICAgIExpc3Q8U3RhYXQ+IHN0YWF0ID0zRAotICAgICAgICAgICAg
ICAgIChMaXN0PFN0YWF0PilyZXBvc2l0b3J5LmZpbHRlcigKLSAgICAgICAgICAgICAgICAgICAg
YnVpbGRlci5nZXRRdWVyeSgpLAotICAgICAgICAgICAgICAgICAgICAic3RhbW0iKS5nZXREYXRh
KCk7Ci0KLSAgICAgICAgICAgIGlmIChzdGFhdC5pc0VtcHR5KCkpIHsKLSAgICAgICAgICAgICAg
ICB0aGlzLndhcm5pbmdzLmFkZChuZXcgUmVwb3J0SXRlbSgic3RhYXQiLCBudWxsLCA2MzEpKTsK
LSAgICAgICAgICAgICAgICByZXR1cm4gb3J0OwotICAgICAgICAgICAgfQotICAgICAgICAgICAg
b3J0LnNldEtvb3JkWEV4dGVybihzdGFhdC5nZXQoMCkuZ2V0S29vcmRYRXh0ZXJuKCkpOwotICAg
ICAgICAgICAgb3J0LnNldExvbmdpdHVkZShEb3VibGUudmFsdWVPZihzdGFhdC5nZXQoMCkuZ2V0
S29vcmRYRXh0ZXJuKCk9CikpOwotICAgICAgICAgICAgb3J0LnNldEtvb3JkWUV4dGVybihzdGFh
dC5nZXQoMCkuZ2V0S29vcmRZRXh0ZXJuKCkpOwotICAgICAgICAgICAgb3J0LnNldExhdGl0dWRl
KERvdWJsZS52YWx1ZU9mKHN0YWF0LmdldCgwKS5nZXRLb29yZFlFeHRlcm4oKSk9Cik7Ci0gICAg
ICAgIH0KLSAgICAgICAgcmV0dXJuIG9ydDsKLSAgICB9Ci0KLSAgICAvKioKLSAgICAgKiBGaW5k
I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