code: protected void registerNodeTypes( InputStream cndStream,
                                        NodeTypeManager nodeTypeManager,
                                        boolean allowUpdate ) throws RepositoryException, IOException {
          if (cndStream == null) {
              throw new IllegalArgumentException("The stream to the given cnd file is null");
          }
          nodeTypeManager.registerNodeTypes(cndStream, allowUpdate);
      }
docs: See {@link Sequencer#registerNodeTypes(String, org.modeshape.jcr.api.nodetype.NodeTypeManager, boolean)}
  
  @param cndStream the input stream containing the CND file; may not be null
  @param nodeTypeManager the node type manager with which the node types in the CND file should be registered; may not be
  null
  @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