It really depends on your application; you might decide to make the XQuery files available through an http connection; or you may want to store them as resources into your jar files; or you may want to encode them using your own algorithm and decode them when you run them...