p = Path.create(eventState.getParentPath(), eventState.getChildRelPath().getName(),
eventState.getChildRelPath().getIndex(), false);
} else {
p = Path.create(eventState.getParentPath(), eventState.getChildRelPath().getName(), false);
}
return p.toJCRPath(session.getNamespaceResolver());
} catch (MalformedPathException e) {
String msg = "internal error: malformed path for event";
log.debug(msg);
throw new RepositoryException(msg, e);
} catch (NoPrefixDeclaredException e) {