added spring dependencies
refactoring to use Resource instead of InputStream and implement init bean
refactoring to use Resource instead of InputStream and implement init bean
application as bean and XML context