// Create a GSH for this component, if it has not been provided already
String componentHandle =
properties.getString("componentHandle",
HandleResolver.createGSH(instanceName));
XCATContainer container = null;
XCATComponentID cid = null;
if (componentType.equals("basic")) {
container = new BasicContainer();
// Instantiate the component
container.createComponentInstance(instanceName,
componentHandle,
className);
// Create an instance of the client side of XCATComponentID
cid = new XCATComponentIDClientImpl(instanceName, componentHandle);
} else if (componentType.equals("mobile")) {
container = new MobileContainer();
if (properties.getBool("isMigrated", false))
((MobileContainer) container).setIsMigrated();
// Instantiate the component
container.createComponentInstance(instanceName,
componentHandle,
className);
// Create an instance of the client side of XCATComponentID
cid = new MobileComponentIDClientImpl(instanceName, componentHandle);
} else