I have to get the json export for a sling model in another sling model. The code that works is: String exportedJson = modelFactory.exportModelForResource(resource, "jackson",String.class, new HashMap<String, String>()); This works when the code actually executes, but when I am trying to write a juni...