uimaAsEngine.addStatusCallbackListener(new SimpleUimaAsBaseCallbackListener());
Map<String, Object> appCtx = new HashMap<String, Object>();
appCtx.put(UimaAsynchronousEngine.ServerUri, "tcp://localhost:61616");
appCtx.put(UimaAsynchronousEngine.Endpoint, queueName);
appCtx.put(UimaAsynchronousEngine.CasPoolSize, 2);
uimaAsEngine.initialize(appCtx);
CAS cas = uimaAsEngine.getCAS();
String text = IOUtils.toString(input);
cas.setDocumentText(text);
uimaAsEngine.sendAndReceiveCAS(cas);
return cas;