Refactored getContainer

Made getContainer use an inputstream so the servlet is using its context
to access files.