}
@Override
public PackageDescriptor scanDirectory(Store store, String name) throws IOException {
String packageName = name.replaceAll("/", ".");
PackageDescriptor packageDescriptor = store.find(PackageDescriptor.class, packageName);
if (packageDescriptor == null) {
packageDescriptor = store.create(PackageDescriptor.class, packageName);
}
return packageDescriptor;
}