private String unProcess(String className, String contents)
  {        
    //System.err.println("P5ExportBuilder.processForP5("+className+",\n\n"+contents);
    Regex re = Regex.getInstance();
    
    String regex = "(.*?)package([^;]+?);";
    if (re.test(regex, contents)) 
      contents = re.replace(regex, contents, "");
    
    regex = "^(.*?)import\\s+processing\\.core\\.(.*?)$";
    if (!re.test(regex, contents)) {
      System.err.println("NO MATCH1.5!");
    }
    contents = re.replace(regex, contents, "");
    
    regex = "(.*?)public\\s+class\\s+"+className+"[^\\{]*?\\{";
    if (!re.test(regex, contents)) {
      System.err.println("NO MATCH2!");
    }
    contents = re.replace(regex, contents, "");
    
    contents = re.replace("public ", contents, "");
    int idx = contents.lastIndexOf("}");
    if (idx>-1) 
      contents = contents.substring(0,idx)+"\n";
    
    String header = "// Generated by EclipseP5Exporter: "+new Date().toString(); 
    
    return header+"\n"+contents;
  }