FileCreater to return the bean object
Brought to you by:
blackbearnh,
dderry
Please add a getBean() method to the FileCreator which returns the bean in order to avoid declaring yet another variable to hold the bean. For example
fileCreator.setBean("batch", new BatchHeader());
((BatchHeader) fileCreator.getBean("batch")).startNewBatch();