Java implementation of qkapi