if (product != null){
Publisher publisher = DatastoreProxy.getPublisherById(product.getPublisherId());
if (publisher != null){
Company company = DatastoreProxy.getCompanyById(publisher.getCompanyId());
if (company != null){
return new ResourceDTO(entity.getId(), entity.getUUID(),
entity.getFilename(), entity.getMimeType(), entity.getFilesize(),
entity.getImageURL(), entity.getBlobKey(),
Company.toSummaryDTO(company),
Publisher.toSummaryDTO(publisher),
Product.toSummaryDTO(product));