private FileChannel initializeFile(String filePath, long fileSize) {
		/* Check to see if the file exists.  Verify that it is a valid
         * PojoStick object store, and then do some further validations
         * to make sure that it is useable.  If it doesn't exist, create
         * it.
         */
		File newFile = new File(filePath);
        if (newFile.exists()) {
            if (newFile.isDirectory()) {
                Log.error("File is a directory and cannot be used.");
                System.exit(0);
            }
            if (!newFile.canRead() || !newFile.canWrite()) {
                Log.error("PojoStick does not have full permissions to use this file.");
                System.exit(0);
            }
            try {
                boolean verified = this.verifyFile();
            } catch (Exception e) {
            	Log.error("File " + e + " exists, but was not verifiable as a valid Elagalus file.");
            	System.exit(0);
            }
        } else {
            try {
                File parent = newFile.getParentFile();
                //System.out.println("Parent: " + parent);
                if (!newFile.getParentFile().exists()) {
                    newFile.getParentFile().mkdirs();
                }
            } catch (Exception ex) {
                Log.error("Exception " + ex);
            }
        }
        RandomAccessFile randomAccessFile = null;
        try {
            randomAccessFile = new RandomAccessFile(newFile, "rw");
            randomAccessFile.setLength(fileSize);
        } catch (IOException e1) {
            Log.error("Unable to create random access file.");
        }

        FileChannel outputFileChannel = null;
        outputFileChannel = randomAccessFile.getChannel();
        return outputFileChannel;
    }