fileStream.close(); fileStream = null;
raFile.close(); raFile = null;
	public synchronized boolean lock() throws IOException {		fileStream = new FileOutputStream(lockFile, true);		try {			fileLock = fileStream.getChannel().tryLock();		} catch (IOException ioe) {			// print exception if debugging			if (BasicLocation.DEBUG)				System.out.println(NLS.bind(EclipseAdaptorMsg.location_cannotLock, lockFile));			// produce a more specific message for clients			String specificMessage = NLS.bind(EclipseAdaptorMsg.location_cannotLockNIO, new Object[] {lockFile, ioe.getMessage(), "\"-D" + BasicLocation.PROP_OSGI_LOCKING + "=none\""}); //$NON-NLS-1$ //$NON-NLS-2$			throw new IOException(specificMessage);		}		if (fileLock != null)			return true;		fileStream.close();		fileStream = null;		return false;	}