* @return Return the newly created entry.
* @throws IOException if problem occurs during catalog node creation or if system is read-only.
*/
private FSEntry createDirectoryEntry(final String name) throws IOException {
if (getFileSystem().isReadOnly()) {
throw new ReadOnlyFileSystemException();
}
Catalog catalog = ((HfsPlusFileSystem) getFileSystem()).getCatalog();
SuperBlock volumeHeader = ((HfsPlusFileSystem) getFileSystem()).getVolumeHeader();
CatalogLeafNode node =
catalog.createNode(name, this.folder.getFolderId(),