/**
* {@inheritDoc}
*/
public Node createConfiguration(String absPath) throws RepositoryException {
if (session.nodeExists(absPath)) {
NodeStateEx state = getNodeState(absPath,
ItemValidator.CHECK_LOCK | ItemValidator.CHECK_PENDING_CHANGES_ON_NODE | ItemValidator.CHECK_HOLD,
Permission.VERSION_MNGMT);
// check versionable
if (!checkVersionable(state)) {
throw new UnsupportedRepositoryOperationException("Node not full versionable: " + absPath);
}
if (state.getPropertyValue(NameConstants.JCR_CONFIGURATION) != null) {
String msg = "Node is already a configuration root: " + absPath;
log.error(msg);
throw new UnsupportedRepositoryOperationException(msg);
}