String filename = new StringBuilder(type).append("_").append(safeName).append("_").append(getTimestamp()).append(".zip").toString();
ResourceResponse response = (ResourceResponse) FacesContext.getCurrentInstance().getExternalContext().getResponse();
response.reset();
response.setContentType("application/zip");
response.setProperty("Content-disposition", "attachment; filename=\"" + filename + "\"");
ManagementController controller = (ManagementController) PortalContainer.getComponent(ManagementController.class);
PathAddress address = PathAddress.pathAddress("mop", type + "sites", name);