if (name.startsWith("com.sun.tools.javac.")) {
final InputStream classStream = getResourceAsStream(name.replace('.', '/') + ".class");
final ClassWriter renamedCw = new ClassWriter(true, false);
new ClassReader(classStream).accept(new RenamingVisitor(new CheckClassAdapter(renamedCw), new ResourceRenamer() {
public String getNewNameFor(final String pOldName) {
if (pOldName.startsWith(FileOutputStream.class.getName())) {
return FileOutputStreamProxy.class.getName();
}
if (pOldName.startsWith(FileInputStream.class.getName())) {