String result = unit.deploy();
// TODO: analyse result
}
// Deploy connections
if (jbi.getServiceAssembly().isSetConnections()) {
Connections connections = jbi.getServiceAssembly().getConnections();
Connection[] cns = connections.getConnectionArray();
for (int i = 0; i < cns.length; i++) {
QName consItf = cns[i].getConsumer().getInterfaceName();
QName consSer = cns[i].getConsumer().getServiceName();
String consEP = cns[i].getConsumer().getEndpointName().getStringValue();
QName provSer = cns[i].getProvider().getServiceName();