class DdlGeneratorFactory implements InitializingBean {

    @SuppressFBWarnings(value = "UWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR",
        justification = "This is a false positive. afterPropertiesSet is called before this method which will ensure ddlGeneratorMap is not null.")
    public DdlGenerator getDdlGenerator(BusinessObjectDataDdlOutputFormatEnum outputFormat)
    {
        DdlGenerator generator = ddlGeneratorMap.get(outputFormat);
        if (generator == null)
        {
            throw new UnsupportedOperationException(
                "No supported DDL generator found for output format: " + (outputFormat == null ? null : outputFormat.value()) + ".");
        }
        return generator;
    }

}