// Stored queries (ie just the query JSON)
static AdvancedQueryPojo getStoredQueryArtefact(String shareIdStr, AdvancedQueryPojo query, String userIdStr) {
ResponsePojo rp2 = new ShareHandler().getShare(userIdStr, shareIdStr, true);
if ((null != rp2.getData() || !rp2.getResponse().isSuccess())) {
SharePojo share = (SharePojo) rp2.getData();
if (null != share) {
if (share.getType().equalsIgnoreCase("dataset")) {
query.input = new com.google.gson.Gson().fromJson(share.getShare(), AdvancedQueryPojo.QueryInputPojo.class);