public static final void write(final Define define, final File directory) {
        if (define == null || directory == null) {
            return;
        }
        OutputStream outputStream = null;
        try {
            String fileName = define.getProxyClassName().replace('/', File.separatorChar).concat(".class");
            File file = new File(directory, fileName);
            if (!file.getParentFile().exists()) {
                file.getParentFile().mkdirs();
            }
            if (!file.exists()) {
                file.createNewFile();
            }
            outputStream = new FileOutputStream(file);
            outputStream.write(define.getBytes());
        } catch (IOException e) {
            e.printStackTrace();
        } finally {
            if (outputStream != null) {
                try {
                    outputStream.close();
                } catch (IOException e) {
                }
            }
        }
    }