// IContainer implementation methods
public void connect(ID targetID, IConnectContext connectContext1) throws ContainerConnectException {
if (targetID == null)
throw new ContainerConnectException("targetID cannot be null"); //$NON-NLS-1$
Namespace targetNamespace = targetID.getNamespace();
Namespace connectNamespace = getConnectNamespace();
if (connectNamespace == null)
throw new ContainerConnectException("targetID namespace cannot be null"); //$NON-NLS-1$
if (!(targetNamespace.getName().equals(connectNamespace.getName())))
throw new ContainerConnectException("targetID of incorrect type"); //$NON-NLS-1$
fireContainerEvent(new ContainerConnectingEvent(containerID, targetID));
synchronized (connectLock) {
if (connectedID == null) {
connectedID = targetID;