code: public IComponentFactory getFactory()
          throws EFapsException
      {
          if (getFactoryKey() == null) {
              for (final IComponentFactory factory : getFactories().values()) {
                  if (factory.applies(this)) {
                      setFactory(factory);
                      break;
                  }
              }
              if (getFactoryKey() == null) {
                  LOG.error("Could not find factory for field '{}' in '{}'", getFieldConfiguration().getName(),
                                  getFieldConfiguration().getField().getCollection().getName());
              }
          }
          return getFactories().get(getFactoryKey());
      }
docs: Getter method for the instance variable {@link #factory}.
  
  @return value of instance variable {@link #factory}
  @throws EFapsException on error