protected List<String> listItems(CliContext context, String itemType) throws PlatformLayerClientException {
PlatformLayerClient client = getPlatformLayerClient(context);
PlatformLayerKey key = PlatformLayerCommandRunnerBase.pathToKey(client, itemType);
List<String> items = Lists.newArrayList();
for (UntypedItem item : client.listItemsUntyped(key).getItems()) {
items.add(item.getKey().getItemId().getKey());
}
return items;
}
}