replace MRFQuery.java