code: private boolean isChildAllowed(final InternalQName childName, final InternalQName childNodeType,
        final NodeDefinitionData cnd, InternalQName reqName, final InternalQName reqNodeType)
     {
        return childNodeType.equals(reqNodeType) && (cnd.isResidualSet() || reqName.equals(childName));
     }
docs: Checks if node with <code>childName</code>as name and <code>childNodeType</code> as node type
  allowed as child.