sInfoBuffer.append("<portName>" +
(String) userKeys[i] +
"</portName>");
// copy over information from UsesPortInfo to UsesPortRecord
UsesPortInfo uInfo = (UsesPortInfo) usesPortMap.get(userKeys[i]);
sInfoBuffer.append("<usesPortRecord>");
sInfoBuffer.append("<portName>" +
uInfo.getPortName() +
"</portName>");
sInfoBuffer.append("<portType>" +
uInfo.getPortType() +
"</portType>");
sInfoBuffer.append("<inUse>" +
false +
"</inUse>"); // inUse is always false before & after migration
sInfoBuffer.append("<unregistered>" +
uInfo.isUnregistered() +
"</unregistered>");
sInfoBuffer.append("<migrationStatus>" +
uInfo.getMigrationStatus() +
"</migrationStatus>");
// copy over the TypeMap object
sInfoBuffer.append("<properties>");
TypeMap tMap = uInfo.getProperties();
String[] mapKeys = tMap.getAllKeys();
for (int j = 0; j < mapKeys.length; j++) {
sInfoBuffer.append("<propertiesEntry>");
sInfoBuffer.append("<key>" +
mapKeys[j] +
"</key>");
sInfoBuffer.append("<type>" +
TypeUtil.toString(tMap.typeOf(mapKeys[j])) +
"</type>");
sInfoBuffer.append("<value>" +
tMap.getAsString(mapKeys[j]) +
"</value>");
sInfoBuffer.append("</propertiesEntry>");
}
sInfoBuffer.append("</properties>");
// copy over information from the ConnectionID
XCATConnectionID connID = uInfo.getConnectionID();
if (connID != null) {
sInfoBuffer.append("<connectionID>");
sInfoBuffer.append("<providerIntfName>" +
connID.getProviderIntfName() +
"</providerIntfName>");