TransactionDemarcation td = new TransactionDemarcation();
MutableRepository r = (MutableRepository) n.resolveName("/SimpleRepository");
try {
// Start a new transaction
td.begin(((GSARepository) r).getTransactionManager());
// Create the item
MutableRepositoryItem item = r.createItem("simpleItem");
item.setPropertyValue("name", "simpleName");
// Persist to the repository
r.addItem(item);