void setServiceElement(final ServiceElement newElem) throws Exception {
boolean update = (this.svcElement != null);
ServiceElement preElem = svcElement;
this.svcElement = newElem;
ServiceChannel channel = ServiceChannel.getInstance();
channel.unsubscribe(localServiceChannelClient);
for (AssociationDescriptor aDesc : svcElement.getAssociationDescriptors()) {
if (aDesc.getAssociationType() == AssociationType.COLOCATED) {
channel.subscribe(localServiceChannelClient, aDesc, ServiceChannelEvent.Type.PROVISIONED);
}
}
ServiceBeanConfig sc = svcElement.getServiceBeanConfig();
Map<String, Object> configParameters = sc.getConfigurationParameters();