private XBundleRevision registerInternal(final BundleContext context, final XEnvironment env, final Registration reg) {
final OSGiMetaData metadata = reg.metadata;
final Module module = reg.module;
LOGGER.infoRegisterModule(module.getIdentifier());
XBundleRevisionBuilderFactory factory = new XBundleRevisionBuilderFactory() {
@Override
public XBundleRevision createResource() {
return new AbstractBundleRevisionAdaptor(context, module);
}
};