}
private static SchemaNode findNodeInModule(final Module module, final Iterable<QName> path) {
- checkArgument(module != null, "Parent reference cannot be NULL");
- checkArgument(path != null, "Path reference cannot be NULL");
-
if (!path.iterator().hasNext()) {
LOG.debug("No node matching {} found in node {}", path, module);
return null;
}
return foundNode;
-
}
private static SchemaNode findNodeIn(final SchemaNode parent, final Iterable<QName> path) {
- checkArgument(parent != null, "Parent reference cannot be NULL");
- checkArgument(path != null, "Path reference cannot be NULL");
-
if (!path.iterator().hasNext()) {
LOG.debug("No node matching {} found in node {}", path, parent);
return null;