Switching deployment to take content object rather than using classpath resource