NPE issue in ClasspathResource