/*************************************************************************** * * **************************************************************************/ @Nonnull private MetadataItemHolder<Item> createNewItem() { final StopWatch stopWatch = StopWatch.create(MetadataItemProviderSupport.class, "createNewItem/" + itemClass.getName()); try { final MetadataItemHolder<Item> holder = createMetadataHolder(creationStrategy.createItem(itemClass)); if (holder.getLatestModificationTime() != null) { throw new AssertionError("MetadataHolders created by createMetadataHolder() must have getLatestModificationTime() == null"); } return holder; } catch (Exception e) { throw new RuntimeException(e); } finally { stopWatch.stop(); } } }