public static ReferencedData getWrappedData ( final String ref , final byte [ ] data ) { return new ReferencedData ( Objects . requireNonNull ( ref ) , data ) ; }
Create a ReferencedData instance that wraps data but also has a reference .