UIObjectInfo newItem = (UIObjectInfo) newObject;
UIObjectInfo nextItem = (UIObjectInfo) nextObject;
// add new item
if (newItem instanceof MenuItemInfo) {
if (newItem.getCreationSupport() instanceof ImplicitFactoryCreationSupport) {
VariableSupport variableSupport = new EmptyPureVariableSupport(newItem);
StatementGenerator statementGenerator = GenerationUtils.getStatementGenerator(newItem);
JavaInfoUtils.add(newItem, variableSupport, statementGenerator, null, m_menu, nextItem);
} else {
JavaInfoUtils.add(newItem, getNewItemAssociation(), m_menu, nextItem);
}