code: protected void registerNodeTypes( String cndFile,
                                        NodeTypeManager nodeTypeManager,
                                        boolean allowUpdate ) throws RepositoryException, IOException {
          InputStream cndStream = getClass().getResourceAsStream(cndFile);
          registerNodeTypes(cndStream, nodeTypeManager, allowUpdate);
      }
docs: Registers node types from a CND file, using the given {@link NodeTypeManager}. Any namespaces defined in the CND file will
  be automatically registered as well.
  
  @param cndFile the relative path to the cnd file, which is loaded using via {@link Class#getResourceAsStream(String)}
  @param nodeTypeManager the node type manager with which the cnd will be registered
  @param allowUpdate a boolean which indicates whether updates on existing node types are allowed or no. See
  {@link NodeTypeManager#registerNodeType(javax.jcr.nodetype.NodeTypeDefinition, boolean)}
  @throws RepositoryException if anything fails
  @throws IOException if any stream related operations fail