protected boolean doPrepare()
{
boolean ok = false;
ContentModification mod = getRepositoryContentModification();
RepositoryContentMetadata toUpdate = getContext().getInProgressMetadata();
RepositoryRootMetadata rmd = toUpdate.getRepositoryRootMetadata(mod.getRootName());
if (rmd != null)
{
replaced = rmd.getItemMetadata(mod.getItem().getRelativePathElements());
// BES 2009/04/20 I see no reason not to do this if replaced != null
// if (replaced == null)
// {
rmd.addItemMetadata(mod.getItem());
ok = true;
// }
if (log.isTraceEnabled())
{