.getContextClassLoader().getResourceAsStream(
xmlFileName);
ProjectImporter projectImporter = new ProjectImporter();
try {
for (Plan plan : projectImporter.importProjects(in)) {
PlanProperties pp = plan.getPlanProperties();
// We set the current user as the owner of the project.
if (user == null) {
log.error("user is null! why?");
} else {
pp.setOwner(user.getUsername());
}
pp.setName("MY DEMO PLAN: "+pp.getName());
pp.setDescription("This is a DEMO plan for the user '"
+user.getUsername()+"'. "+ pp.getDescription());
pp.setPrivateProject(true);
/*
for (Trigger trigger : project
.getProjectBasis().getTriggers()
.keySet()) {