final ErlangBuilder builder = ErlangBuilderFactory.get(builderTool);
final BuildNotifier notifier = new BuildNotifier(null, prj);
final IErlProject erlProject = ErlangEngine.getInstance().getModel()
.getErlangProject(prj);
builder.clean(erlProject, notifier);
prj.refreshLocal(IResource.DEPTH_INFINITE, null);
waitJobsToFinish(ResourcesPlugin.FAMILY_MANUAL_REFRESH);
final String targetBeamPath = "ebin/mod.beam";
final IResource beam2 = prj.findMember(targetBeamPath);