ProductConfigWrapper pcw = null;
try {
aggregatedItem = trans.isAggregatedItem(productId);
if (aggregatedItem) {
pcw = trans.getProductConfigWrapper(productId, index);
ConfigureItem configureItem = new ConfigureItem(pcw, trans, pos);
pcw = configureItem.openDlg();
configureItem = null;
trans.modifyConfig(productId, pcw, index);
} else {
pos.showDialog("dialog/error/itemnotconfigurable");
}