src/main/java/org/efaps/ui/wicket/models/field/AbstractUIField.java
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());
    }
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());
    }
Getter method for the instance variable {@link #factory}.

@return value of instance variable {@link #factory}
@throws EFapsException on error