/** * This method finds the SyncSet Definition Container NodeRef, creating one if it does not exist. * * @return the syncset definition container */ public NodeRef getOrCreateDowloadContainer() { NodeRef downloadsContainer = getContainer(); if (downloadsContainer == null) { if (log.isInfoEnabled()) log.info("Lazy creating the Downloads System Container "); downloadsContainer = SystemNodeUtils.getOrCreateSystemChildContainer( getContainerQName(), nodeService, repositoryHelper) .getFirst(); } return downloadsContainer; }
private NodeRef getContainer() { return SystemNodeUtils.getSystemChildContainer( getContainerQName(), nodeService, repositoryHelper); }