runDate = new Date();
if (!externalManager) {
manager = getPersistence().getNewEntityManager();
}
if (webInterfaceService == null) {
webInterfaceService = new WebInterfaceServiceImpl(sonarHostURL);
}
MavenProject sonarProject;
try {
manager.getTransaction().begin();
sonarProject = saveMavenProject(mavenProject, null);