class EmrStepHelperFactory 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 emrStepHelperMap is not null.")
    public EmrStepHelper getStepHelper(String stepType)
    {
        EmrStepHelper stepHelper = emrStepHelperMap.get(stepType);
        if (stepHelper == null)
        {
            throw new IllegalArgumentException("No supported EMR step helper found for stepType: " + stepType + ".");
        }
        return stepHelper;
    }

}