code: private MsgFormat init()
          throws EFapsException
      {
          if (!this.initialized) {
              for (final Class<?> clazz : new EsjpScanner().scan(EFapsFormatFactory.class)) {
                  try {
                      final FormatFactory factory = (FormatFactory) clazz.newInstance();
                      final EFapsFormatFactory ano = clazz.getAnnotation(EFapsFormatFactory.class);
                      this.registry.put(ano.name(), factory);
                  } catch (final InstantiationException | IllegalAccessException e) {
                      MsgFormat.LOG.error("Catched error on instantiotion", e);
                  }
              }
              MsgFormat.LOG.info("registered FormatFactories: {}", this.registry);
              this.initialized = true;
          }
          return this;
      }
docs: Initialize and scan for root resource and provider classes using a
  scanner.
  
  @throws EFapsException on error
  @return MsgFormat instance