product.setLink("Link");
productDAO.put(product);
product.setPublisherId(publisher.getId());
products.add(product.getId());
for (int n = 0; n < 10; n++) {
Resource resource = new Resource();
resource.setFilename("resource" + n + ".jpeg");
resource.setImageURL("https://lh3.googleusercontent.com/-hQtlZHxpmA0/SMv3w4UUqcI/AAAAAAAACAQ/nPEx0-f9L6Y/s912/DSC02207.JPG");
resource.setUUID((UUID.randomUUID().toString()));
resource.setProductId(product.getId());
resourceDAO.put(resource);
}
productDAO.put(product);
}
for (int n = 0; n < 5; n++) {