if (clazz==null) { throw new ClassNotFoundException(classname); }
    public static Streamable readGenericStreamable(DataInputStream in) throws IOException {        Streamable retval=null;        int b=in.read();        if(b == 0)            return null;        int use_magic_number=in.read(), magic_number;        String classname;        Class clazz;        try {            if(use_magic_number == 1) {                magic_number=in.readInt();                clazz=ClassConfigurator.getInstance(false).get(magic_number);            }            else {                classname=in.readUTF();                clazz=ClassConfigurator.getInstance(false).get(classname);            }            retval=(Streamable)clazz.newInstance();            retval.readFrom(in);            return retval;        }        catch(Exception ex) {            throw new IOException("failed reading object: " + ex.toString());        }    }