* @return the new directory; never null
*/
private static File newTempDirectory() {
String tempDirName = System.getProperty(JAVA_IO_TMPDIR);
if (tempDirName == null) {
throw new SystemFailureException(JcrI18n.tempDirectorySystemPropertyMustBeSet.text(JAVA_IO_TMPDIR));
}
File tempDir = new File(tempDirName);
// Create a temporary directory in the "java.io.tmpdir" directory ...
return new File(tempDir, "modeshape-binary-store");