public void selectedItemUpdate(com.melitronic.rmapp.model.Item item) {
selectedItemUpdate(item, (com.melitronic.rmapp.model.ItemGroup)null);
}
public void selectedItemUpdate(com.melitronic.rmapp.model.Item item, com.melitronic.rmapp.model.ItemGroup parentItemGroup) {
Item it = null;
ItemGroup ig = null;
if (item instanceof com.melitronic.rmapp.model.Issue) {
it = getIssue((com.melitronic.rmapp.model.Issue)item);
}
else {
it = getItem(item);
}
if (it.getId() != null) {
ig = it.getItemGroup();
}
else {
ig = getItemGroup(parentItemGroup);
}
boolean isNew = it.getId() == null;
DmProduct dmProduct =
DmProductFactory.instance().getClient(getCallContext());
Item resp = null;
resp = dmProduct.store(it, ig, getCallContext());
if (resp instanceof Issue) {
setSelectedIssue(getIssue((Issue)resp));
}