client.trimFormat("/%s"); // sleazy hack to remove trailing id
entry = title == null
? parseEntry(client, is, maps, preview, pw)
: client.buildEntry(title, content, summary);
if (id.length() > 0) {
entry.setExtension(new ResourceId(id));
}
setProperties(props, entry);
if (preview) {
pp(maps, entry, pw);
}