* @param bytecode The bytecode for the package-info.class
* @param packageSourceFile The source file.
* @return Whether the file was actually written.
*/
protected boolean writePackageSourceFile(InputStream bytecode, File packageSourceFile) throws IOException {
JaxbPackageInfoWriter writer = new JaxbPackageInfoWriter();
String info = writer.write(bytecode);
if (info != null) {
packageSourceFile.getParentFile().mkdirs();
FileWriter out = new FileWriter(packageSourceFile);
out.write(info);
out.flush();