init based on http://spring.io/guides/gs/uploading-files/