/** * Returns a {@link INodeSet} object conatining the nodes config data. * * @param nodesFile the source file * @param format nodes format * @return an instance of {@link INodeSet} * @throws ResourceModelSourceException on error */ public synchronized INodeSet getNodes(final File nodesFile, final String format) throws ResourceModelSourceException { final Long modtime = nodesFile.lastModified(); if (0 == nodeSet.getNodes().size() || (modtime > lastModTime)) { nodeSet = new NodeSetImpl(); loadNodes(nodesFile, format); lastModTime = modtime; } return nodeSet; }