log.debugf("Installing a message processor for destination '%s'", metaData.getDestinationName());
if (destinationMetaData != null && destinationMetaData.isRemote()) {
log.debug("Destination is located on a remote host");
service = new RemoteMessageProcessorGroup( phaseContext.getServiceRegistry(), baseServiceName, metaData.getDestinationName(), destinationMetaData.getRemoteHost(), destinationMetaData.getUsername(), destinationMetaData.getPassword() );
} else {
service = new MessageProcessorGroup( phaseContext.getServiceRegistry(), baseServiceName, metaData.getDestinationName() );
}
service.setConcurrency( metaData.getConcurrency() );