/** * Creates a new stored query specifying whether to persist the query to disk or not. * * @param def The stored query definition. * @param store Whether to persist the query or not. */ public StoredQuery createStoredQuery(StoredQueryDescriptionType query, boolean store) { StoredQuery sq = new StoredQuery(query, catalog); if (store) { putStoredQuery(sq); } return sq; }