if (registered) {
return;
}
try {
Registry registry = context.getRegistry();
registry.registerPackage("OpenNTFDomino", 1337);
FBSDefaultObject defaultObject = registry.getRegistryObject();
List<Object> wregs = ExtensionManager.findServices(null, WrapperOpenDomino.class, WrapperRegistry.class.getName());
// for (Class<?> clazz : WRAPPED_CLASSES) {
for (Object wreg : wregs) {
for (Class<?> clazz : ((WrapperRegistry) wreg).getWrapperClasses()) {
registry.registerWrapper(clazz, new OpenWrapperFactory(clazz));
defaultObject.createProperty("Open" + clazz.getSimpleName(), 1338, new OpenConstructor(context, clazz));
}
}
} catch (Exception e) {