jcrService_.getCurrentRepository() :
jcrService_.getRepository(repositoryName);
for (String workspaceName : workspaceNames)
{
JcrPath currentjcrPath = null;
try
{
session = repository.getSystemSession(workspaceName);
Node rootNode = session.getRootNode();
for (JcrPath jcrPath : jcrPaths)
{
currentjcrPath = jcrPath;
if (!jcrPath.getAlias().equals(USER_APPLICATION) && !jcrPath.getAlias().startsWith(USER_PRIVATE)
&& !jcrPath.getAlias().startsWith(USER_PUBLIC))
{
createNode(rootNode, jcrPath.getPath(), jcrPath.getNodeType(), jcrPath.getMixinTypes(),
jcrPath.getPermissions(null));
}
}
}
catch (RepositoryException e)
{
LOG.error("An error occurs while processing the JCR path which alias is "
+ (currentjcrPath == null ? null : currentjcrPath.getAlias()) + " with the workspace "
+ workspaceName, e);
}
finally
{
if (session != null)