UPDATE: this is not a problem of code. Code works as it should.
I've restarted OrientDB server for few times and then it works as it should.
So, the problem was in OrientDB server, not the code.
Seems like there is no timeout for promise result. So, when I was calling `db.class.get` the promise was stuck without invocation of `then` or `catch`.
UPDATE: this is not a problem of code. Code wor