InputStream fileIs = this.getClass().getResourceAsStream("/file.xml");
file = fileReader.read(fileIs, site);
IOUtils.closeQuietly(fileIs);
// Prepare the sample image
ImageResourceReader imageReader = new ImageResourceReader();
InputStream imageIs = this.getClass().getResourceAsStream("/image.xml");
jpeg = imageReader.read(imageIs, site);
IOUtils.closeQuietly(imageIs);
jpegContent = new ImageContentImpl(jpegContentURL.getFile(), german, "image/jpeg", 1000, 666);
pngContent = new ImageContentImpl(pngContentURL.getFile(), english, "text/pdf", 1000, 666);
}