methodGen.stripAttributes(deepStripment);
    public JavaClass cleanUpClassGen(ClassGen classGen) {    	oldPool= classGen.getConstantPool();    	ClassGen newClassGen= new ClassGen(classGen.getClassName(), classGen.getSuperclassName(), classGen.getFileName(), classGen.getAccessFlags(), classGen.getInterfaceNames(), newPool);    	Attribute[] attributes= classGen.getAttributes();    	for (int i = 0; i < attributes.length; i++) {			attributes[i].accept(this);		}        Method[] methods= classGen.getMethods();        for (int i = 0; i < methods.length; i++) {        	//TODO used because a bug in bcel in method MethodGen.copy(String, ConstantPoolGen)        	if (methods[i].isAbstract() || methods[i].isNative()) {            	methods[i].setNameIndex(newPool.addConstant(oldPool.getConstant(methods[i].getNameIndex()), oldPool));            	methods[i].setSignatureIndex(newPool.addConstant(oldPool.getConstant(methods[i].getSignatureIndex()), oldPool));        	} else {	            MethodGen methodGen= new MethodGen(methods[i], classGen.getClassName(), oldPool).copy(classGen.getClassName(), newPool);	            methodGen.stripAttributes(deepStripment);	            if (deepStripment) {					attributes= methodGen.getAttributes();					for (int j = 0; j < attributes.length; j++) {						if (attributes[j] instanceof Synthetic || attributes[j] instanceof Deprecated) {							methodGen.removeAttribute(attributes[j]);						}					}				}	            methods[i]= methodGen.getMethod();        	}            methods[i].accept(this);            newClassGen.addMethod(methods[i]);        }        Field[] fields= classGen.getFields();        for (int i = 0; i < fields.length; i++) {            if (deepStripment) {				attributes= fields[i].getAttributes();				for (int j = 0; j < attributes.length; j++) {					if (attributes[j] instanceof Synthetic || attributes[j] instanceof Deprecated) {						FieldGen fieldGen= new FieldGen(fields[i], oldPool);						fieldGen.removeAttribute(attributes[j]);						fields[i]= fieldGen.getField();					}				}			}			fields[i].accept(this);			newClassGen.addField(fields[i]);					}        if (deepStripment) {        	attributes= newClassGen.getAttributes();        	for (int i = 0; i < attributes.length; i++) {        		if (attributes[i] instanceof SourceFile ||        				attributes[i] instanceof Deprecated) {        			newClassGen.removeAttribute(attributes[i]);        		}    		}		}        return newClassGen.getJavaClass();    }