code: @Override
    public NamingUnregisterRequest decode(final byte[] buf) {
      final AvroNamingUnRegisterRequest result = AvroUtils.fromBytes(buf, AvroNamingUnRegisterRequest.class);
      return new NamingUnregisterRequest(factory.getNewInstance(result.getId().toString()));
    }
docs: Decodes the bytes to a naming un-registration request.
  
  @param buf the byte array
  @return a naming un-registration request
  @throws org.apache.reef.io.network.naming.exception.NamingRuntimeException