Java implementation of QP framework