package ch.elexis.core.services.holder;

import org.osgi.service.component.annotations.Component;
import org.osgi.service.component.annotations.Reference;

import ch.elexis.core.services.ILocalLockService;

@Component
public class LocalLockServiceHolder {
	
	private static ILocalLockService localLockService;
	
	@Reference
	public void setLocalLockService(ILocalLockService localLockService){
		LocalLockServiceHolder.localLockService = localLockService;
	}
	
	public static ILocalLockService get(){
		return localLockService;
	}
}

@@ -494,16 +494,124 @@
  get()%7B%0A
+%09%09if (localLockService == null) %7B%0A%09%09%09throw new IllegalStateException(%22No ILocalLockService available%22);%0A%09%09%7D%0A
 %09%09return

Throw IllegalStateException for non available ILocalLockService