About integration of lora server and kaa

I used KAA(https://www.kaaproject.org/) for other IoT projects(not loraWan based).

I’d like to integrate loraserver and KAA, there are some solutions:

  1. lora network server <–> lora app server <–> kaa : put the kaa sdk to lora app server, and make the lora app server an endpoint ot kaa
  2. implement lora network server and lora app server in kaa

which one is better, any other solution?