ConverterUtils { public static SchemaNode getSchemaNode(final SchemaContext schemaContext, final QName qname) { return DataSchemaContextTree.from(schemaContext).getChild(YangInstanceIdentifier.of(qname)).getDataSchemaNode(); } private  ConverterUtils(); static Optional<RpcDefinition> loadRpc(final SchemaContext schemaContext, final QName rpcQName); static Optional<NotificationDefinition> loadNotification(final SchemaContext schemaContext,
            final QName notificationQname); static Optional<QName> getRpcQName(final XmlElement xmlElement); static Optional<QName> getRpcQName(final String inputString); static XmlElement rpcAsInput(final XmlElement inputXmlElement); static XmlElement rpcAsInput(final XmlElement inputXmlElement, final String namespace); static XmlElement rpcAsOutput(final XmlElement inputXmlElement); static XmlElement rpcAsOutput(final XmlElement inputXmlElement, final String namespace); static SchemaNode getSchemaNode(final SchemaContext schemaContext, final QName qname); static SchemaNode getSchemaNode(final SchemaContext schemaContext,
            final YangInstanceIdentifier yangInstanceIdentifier); static SchemaNode getSchemaNode(final SchemaContext schemaContext, final String namespace,
            final String revision, final String localName);  }
@Test public void testGetSchemaNode() { SchemaNode node = ConverterUtils.getSchemaNode(this.schemaContext, Toaster.QNAME); Assert.assertNotNull(node); Assert.assertTrue(node.getQName().equals(Toaster.QNAME)); node = ConverterUtils.getSchemaNode(this.schemaContext, TOASTER_YANG_INSTANCE_IDENTIFIER); Assert.assertNotNull(node); Assert.assertTrue(node.getQName().equals(Toaster.QNAME)); }