return (InputStream) response.getEntity();
}
public byte[] getDiagram() {
WorkflowService service = getService(WorkflowService.class);
WebClient.client(service).accept(RESTHeaders.MEDIATYPE_IMAGE_PNG);
Response response = service.exportDiagram(SubjectType.USER);
byte[] diagram;
try {
diagram = IOUtils.readBytesFromStream((InputStream) response.getEntity());
} catch (Exception e) {