}
private void setupVfs(final VFS vfs, final Environment env) throws IOException {
final ServiceReference<BundleSelector> ref = this.bundleContext.getServiceReference(BundleSelector.class);
try {
BundleSelector bundleSelector = null;
if (ref != null) {
bundleSelector = this.bundleContext.getService(ref);
}
final List<WrappedSystem> files = new ArrayList<WrappedSystem>();
for (final Bundle bundle : this.bundleContext.getBundles()) {
if (bundleSelector != null) {
if (bundleSelector.shouldInclude(env, bundle)) {
for (String folder : env.getFiles().getFolder()) {
if (!folder.endsWith("/")) {
folder = folder + '/';
}
files