if(params.containsKey(clientId)) {
String image = params.get(clientId);
image = image.substring(22);
CaptureEvent event = new CaptureEvent(cam, DatatypeConverter.parseBase64Binary(image), image);
event.setPhaseId(PhaseId.INVOKE_APPLICATION);
cam.queueEvent(event);
}
}