Map<String, String> replaceRegularExpressionsRest = new LinkedHashMap<String,String>();
replaceRegularExpressionsRest.put("@package@", projectName + ".rest");
String src = projectPaths.getSrc();
project.addResource(src + "/" + pkgPath + "/api/packageinfo", new BndProjectResource(AmdatuMixedTemplate.class.getResource("packageinfo.txt"), null));
project.addResource(src + "/" + pkgPath + "/api/Example.java", new BndProjectResource(AmdatuMongoTemplate.class.getResource("Example.java.txt"), replaceRegularExpressionsApi));
project.addResource(src + "/" + pkgPath + "/api/ExampleDocument.java", new BndProjectResource(AmdatuMongoTemplate.class.getResource("ExampleDocument.java.txt"), replaceRegularExpressionsApi));
project.addResource(src + "/" + pkgPath + "/mongo/Activator.java", new BndProjectResource(AmdatuMongoTemplate.class.getResource("Activator.java.txt"), replaceRegularExpressionsMongo));
project.addResource(src + "/" + pkgPath + "/mongo/ExampleComponent.java", new BndProjectResource(AmdatuMongoTemplate.class.getResource("ExampleComponent.java.txt"), replaceRegularExpressionsMongo));
project.addResource(src + "/" + pkgPath + "/rest/Activator.java", new BndProjectResource(AmdatuRestTemplate.class.getResource("Activator.java.txt"), replaceRegularExpressionsRest));
project.addResource(src + "/" + pkgPath + "/rest/ExampleComponent.java", new BndProjectResource(AmdatuRestTemplate.class.getResource("ExampleComponent.java.txt"), replaceRegularExpressionsRest));
project.addResource("api.bnd", new BndProjectResource(AmdatuMixedTemplate.class.getResource("api.bnd.txt"), replaceRegularExpressionsApi));
project.addResource("mongo.bnd", new BndProjectResource(AmdatuMixedTemplate.class.getResource("mongo.bnd.txt"), replaceRegularExpressionsMongo));
project.addResource("rest.bnd", new BndProjectResource(AmdatuMixedTemplate.class.getResource("rest.bnd.txt"), replaceRegularExpressionsRest));
}