if (!anEndpoint.isRemote()) {
ByteArrayOutputStream bos = new ByteArrayOutputStream();
try {
UimaTransport transport = null;
transport = getTransport(anEndpoint.getEndpoint());
UimaMessage message = transport.produceMessage(AsynchAEMessage.GetMeta,
AsynchAEMessage.Response, getName());
metadata.toXML(bos);
message.addStringCargo(bos.toString());
transport.getUimaMessageDispatcher(anEndpoint.getEndpoint()).dispatch(message);
} catch (Exception e) {
if (UIMAFramework.getLogger(CLASS_NAME).isLoggable(Level.WARNING)) {
UIMAFramework.getLogger(CLASS_NAME).logrb(Level.WARNING, CLASS_NAME.getName(),
"sendMetadata", UIMAEE_Constants.JMS_LOG_RESOURCE_BUNDLE,
"UIMAEE_service_exception_WARNING", getComponentName());