public static Command createParentRedirectForExternalResource(String redirectMapperURL) {
JSONObject root = new JSONObject();
try {
root.put("rurl", redirectMapperURL);
} catch (JSONException e) {
throw new AssertException("wrong data put into json object", e);
}
Command c = new Command(5);
c.setSubJSON(root);
return c;
}