*/
private Repository createRepository(File repoFile, File repoDir) throws IOException {
DataModelHelper dmh = getRepositoryAdmin().getHelper();
List<Resource> resources = new ArrayList<Resource>();
for (File jar : findAllJars(repoDir)) {
Resource r = dmh.createResource(jar.toURI().toURL());
if (r == null) {
logger.logp(Level.WARNING, "ObrHandler", "createRepository", "{0} not an OSGi bundle", jar.toURI().toURL());
} else {
resources.add(r);