// if (!key.equals(FederationKey.LOCAL_FEDERATION_KEY)) {
if (item instanceof ItemBase) {
ItemBase itemBase = (ItemBase) item;
// if (!key.equals(FederationKey.LOCAL_FEDERATION_KEY)) {
PlatformLayerKey plk = itemBase.getKey();
if (plk == null) {
throw new IllegalStateException();
}
itemBase.setKey(changeHost(plk));
// }
} else if (item instanceof UntypedItemXml) {
UntypedItemXml untypedItemXml = (UntypedItemXml) item;
PlatformLayerKey plk = untypedItemXml.getKey();
untypedItemXml.setPlatformLayerKey(changeHost(plk));
} else {
throw new UnsupportedOperationException();
}
// }