ProblemRequestor requestor = new ProblemRequestor();
try{
workingCopy.discardWorkingCopy();
workingCopy.becomeWorkingCopy(requestor, null);
}finally{
workingCopy.discardWorkingCopy();
}
List<IProblem> problems = requestor.getProblems();
ArrayList<Error> errors = new ArrayList<Error>();
String filename = src.getResource().getLocation().toOSString();