code: public static void checkContentResourceType(NodeType contentNodeType) throws NoSuchNodeTypeException
     {
        if (!contentNodeType.isNodeType(WebDavConst.NodeTypes.NT_RESOURCE))
        {
           throw new NoSuchNodeTypeException("Content-Node type " + contentNodeType.getName()
              + " must extend nt:resource.");
        }
     }
docs: Cheks if the NodeType of content node extends nt:resource.
  
  @param contentNodeType Content-NodeType header
  @throws NoSuchNodeTypeException {@link NoSuchNodeTypeException}