class FileHelper {

    public static String createUserDirectory(String applicationUserSpaceDir) {
        String userSubDir = Long.toString(new Date().getTime());

        //String applicationUserSpaceDir = System.getProperty("applicationUserSpaceDir");
        String seperator = File.separator;
        String userTempDir = applicationUserSpaceDir + seperator + userSubDir;
        if (FileHelper.createDir(userTempDir)) {
            log.debug("User subdirectory created at: " + userTempDir);
            return userSubDir;
        }
        log.warn(new StringBuilder("User subdirectory could not be created at: " + userSubDir).toString());
        log.debug("User will be unable to upload files for this session.");
        return "";
    }

}