A java library for stored queries