* @param docURI
* @return String
*/
protected String generateFilename(String docURI) {
if (useMD5) {
MD5 md5 = new MD5(docURI);
String hex = md5.asHex();
if (storageDirDepth > 0) {
return useFirstCharactersAsDirectories(hex) + hex.substring(storageDirDepth);
}
return hex;
} else {