Method[] methods = cg.getMethods();
for ( Method method : methods )
{
if ( method.getName().equals( "main" ) )
{
cg.removeMethod( method );
MethodGen mg = new MethodGen( method, jc.getClassName(), p );
InstructionList il = mg.getInstructionList();
for ( Iterator<?> it = il.iterator(); it.hasNext(); )
{