// Path: src/jext2/exceptions/JExt2Exception.java
// public class JExt2Exception extends Exception {
// 	protected static final int ERRNO = -1;
// 
// 	private static final long serialVersionUID = -7429088074385678308L;
// 
// 	Logger logger = Filesystem.getLogger();
// 
// 	public JExt2Exception() {
// 		log("");
// 	}
// 
// 	public JExt2Exception(String msg) {
// 		log(msg);
// 	}
// 
// 	private void log(String msg) {
// 		if (logger.isLoggable(Level.FINE)) {
// 			StackTraceElement[] stack = getStackTrace();
// 
// 			StringBuilder log = new StringBuilder();
// 			log.append("JEXT2 exception was raised: ");
// 			log.append(this.getClass().getSimpleName());
// 			log.append(" source=");
// 			log.append(stack[0].getClassName());
// 			log.append("->");
// 			log.append(stack[0].getMethodName());
// 			log.append(" msg=");
// 			log.append(msg);
// 			log.append(" errno=");
// 			log.append(getErrno());
// 
// 			logger.fine(log.toString());
// 		}
// 	}
// 
// 	public int getErrno() {
// 		throw new RuntimeException("This method should not be executed. " +
// 				"- The errno value defined here is meaningless");
// 	}
// }


import jext2.exceptions.JExt2Exception;
			result = d.value;
			d.unlock();

		} else {
			d = new Data();
			d.lock();
			d.usage = 1;
			d.value = entry;
			result = entry;

			table.put(entry.getName(), d);
			d.unlock();
		}

		return result;

	}

	public boolean hasEntry(DirectoryEntry entry) {
		assert entry != null;

		if (entry.isUnused()) return true;
		boolean result;

		result = table.containsKey(entry.getName());

		return result;
	}

	@Override
// Path: src/jext2/exceptions/JExt2Exception.java
// public class JExt2Exception extends Exception {
// 	protected static final int ERRNO = -1;
// 
// 	private static final long serialVersionUID = -7429088074385678308L;
// 
// 	Logger logger = Filesystem.getLogger();
// 
// 	public JExt2Exception() {
// 		log("");
// 	}
// 
// 	public JExt2Exception(String msg) {
// 		log(msg);
// 	}
// 
// 	private void log(String msg) {
// 		if (logger.isLoggable(Level.FINE)) {
// 			StackTraceElement[] stack = getStackTrace();
// 
// 			StringBuilder log = new StringBuilder();
// 			log.append("JEXT2 exception was raised: ");
// 			log.append(this.getClass().getSimpleName());
// 			log.append(" source=");
// 			log.append(stack[0].getClassName());
// 			log.append("->");
// 			log.append(stack[0].getMethodName());
// 			log.append(" msg=");
// 			log.append(msg);
// 			log.append(" errno=");
// 			log.append(getErrno());
// 
// 			logger.fine(log.toString());
// 		}
// 	}
// 
// 	public int getErrno() {
// 		throw new RuntimeException("This method should not be executed. " +
// 				"- The errno value defined here is meaningless");
// 	}
// }


// Path: src/jext2/DirectoryEntryAccess.java
import jext2.exceptions.JExt2Exception;

			result = d.value;
			d.unlock();

		} else {
			d = new Data();
			d.lock();
			d.usage = 1;
			d.value = entry;
			result = entry;

			table.put(entry.getName(), d);
			d.unlock();
		}

		return result;

	}

	public boolean hasEntry(DirectoryEntry entry) {
		assert entry != null;

		if (entry.isUnused()) return true;
		boolean result;

		result = table.containsKey(entry.getName());

		return result;
	}

	@Override
	protected DirectoryEntry createInstance(String key) throws JExt2Exception {