} catch(Exception ex) {}
} else {
// we store all other resources in the default directory; create a random file name and store it in the hasContentLocation
// property
String extension = null;
MimeEntry entry = MimeTable.getDefaultTable().find(mimetype);
if(entry != null && entry.getExtensions().length > 0) {
extension = entry.getExtensions()[0];
}
String fileName = UUID.randomUUID().toString();
path = defaultDir + File.separator +
fileName.substring(0,2) + File.separator +