@Override
 public List<WebArchive> getWarStatus(Long systemId) {
   List<ServiceResponse<WebArchive>> status = requestTaskService.status(systemId);
   List<WebArchive> webArchives = new ArrayList<WebArchive>();
   for (ServiceResponse<WebArchive> response : status) {
     webArchives.addAll(response.getData());
   }
   return webArchives;
 }
 @Override
 public List<Deployed> getDeployedPackageNames(SystemModel system) {
   List<ServiceResponse<Deployed>> list = requestTaskService.list(system.getId());
   List<Deployed> deployedList = new ArrayList<Deployed>();
   for (ServiceResponse<Deployed> response : list) {
     deployedList.add(response.getItem());
   }
   return deployedList;
 }
  private void initResourceContents(NavigationElement navigationElement) {
    try {
      SimpleIdentifier<String> textIdentifier =
          new SimpleIdentifier<String>(navigationElement.getLookup() + ".menu-name");
      ServiceRequest<SimpleIdentifier<String>> textResourceRequest =
          new ServiceRequest<SimpleIdentifier<String>>(textIdentifier);
      ServiceResponse<TextResource> textResourceResponse =
          readTextResourceByLookupBroker.perform(textResourceRequest);
      if (textResourceResponse.isSuccess()) {
        navigationElement.setTextResourceVersion(
            textResourceResponse.getItem().getResourceVersion());
      }

      SimpleIdentifier<String> imageIdentifier =
          new SimpleIdentifier<String>(navigationElement.getLookup() + ".menu-icon");
      ServiceRequest<SimpleIdentifier<String>> imageResourceRequest =
          new ServiceRequest<SimpleIdentifier<String>>(imageIdentifier);
      ServiceResponse<ImageResource> imageResourceResponse =
          readImageResourceByLookupBroker.perform(imageResourceRequest);
      if (imageResourceResponse.isSuccess()) {
        navigationElement.setImageResourceVersion(
            imageResourceResponse.getItem().getResourceVersion());
      }
    } catch (Exception e) {
      logger.error(e);
    }
  }