protected AbstractDeployable(ModuleType type, Bundle bundle, String rootDD) throws DDBeanCreateException {
this.type = type;
this.bundle = bundle;
URL dd = bundle.getResource(rootDD);
root = new DDBeanRootImpl(this, dd);
entries = new ArrayList<String>();
Enumeration<String> paths = bundle.getEntryPaths("/");
//TODO WTF?? if statement seems to be required????
if (paths.hasMoreElements()) {