Flexible data comparison system (java)