@Override
	public int getCurrentVersion() {
		if (isVersioned) {
			return versionedDb != null ? versionedDb.getCurrentVersion() : 0;
		}
		return privateDb != null ? privateDb.getCurrentVersion() : 0;
	}
Create a new LocalDatabaseItem and an empty updateable BufferFile which may be used
to create the initial database content.
 @param fileSystem file system
@param propertyFile database property file
@param bufferSize buffer size to be used for new database
@param contentType user content type
@param fileID unique file ID or null
@param user if versioned, user used for permission check and history data
@param projectPath path of project in versioned database checkout is done (may be null for non-versioned database)
@return open updateable empty BufferFile for initial content writing
@throws IOException if error occurs
Ghidra/Framework/FileSystem/src/main/java/ghidra/framework/store/local/LocalDatabaseItem.java