final ServiceLoader<Registry> registriesLoaders = ServiceLoader.load(Registry.class, getClass().getClassLoader());
final List<Registry> registries = new ArrayList<Registry>();
registries.add(new JndiRegistry());
if (isEnableCdiIntegration()) {
registries.add(new CdiBeanRegistry());
}
registries.add(_writeableRegistry);
for (Registry registry : registriesLoaders) {
registries.add(registry);