- @SuppressWarnings({ "rawtypes", "unchecked" })
- static DataContainerCodecPrototype<?> from(final Class<?> augClass, final AugmentationIdentifier arg,
- final AugmentationSchemaNode schema, final CodecContextFactory factory) {
- return new DataContainerCodecPrototype(augClass, arg, schema, factory);
+ static DataContainerCodecPrototype<AugmentRuntimeType> from(final Class<?> augClass,
+ final AugmentationIdentifier arg, final AugmentRuntimeType schema, final CodecContextFactory factory) {
+ return new DataContainerCodecPrototype<>(augClass, arg, schema, factory);
+ }
+
+ static DataContainerCodecPrototype<NotificationRuntimeType> from(final Class<?> augClass,
+ final NotificationRuntimeType schema, final CodecContextFactory factory) {
+ final PathArgument arg = NodeIdentifier.create(schema.statement().argument());
+ return new DataContainerCodecPrototype<>(augClass, arg, schema, factory);