Should read wrapped in a doPrivileged block so that if third party jars are denied access to resources we're not affected.