public static ServiceInstance deserializeServiceInstance ( byte [ ] data , Codec < ServiceInstance > codec ) throws IOException { return codec . deserialize ( new ByteArrayInputStream ( data ) ) ; }
Creates a service instance object deserialized from byte array .