} else if ("java.nio".equals(lockMode)) { if (runningWithNio()) {
return; }  if ("java.nio".equals(lockMode)) { if (isRunningWithNio()) {
	private void setLocker(File lock) {		if (locker != null)			return;		// TODO return early, avoid if/else/if/else...		String lockMode = System.getProperties().getProperty(PROP_OSGI_LOCKING);		if (lockMode == null) { //By default set the lock mode to 1.4			if (runningWithNio()) {				locker = new Locker_JavaNio(lock);			} else {				locker = new Locker_JavaIo(lock);			}		} else if ("none".equals(lockMode)) { //$NON-NLS-1$			return;		} else if ("java.io".equals(lockMode)) { //$NON-NLS-1$			locker = new Locker_JavaIo(lock);		} else if ("java.nio".equals(lockMode)) { //$NON-NLS-1$			if (runningWithNio()) {				locker = new Locker_JavaNio(lock);			} else {				locker = new Locker_JavaIo(lock);			}		} else {			//TODO need to check NIO is available 			//	Backup case if an invalid value has been specified			locker = new Locker_JavaNio(lock);		}	}