package com.celements.emptycheck.service; import org.xwiki.component.annotation.Component; import org.xwiki.model.reference.DocumentReference; import org.xwiki.script.service.ScriptService; import com.xpn.xwiki.web.Utils; @Component("emptycheck") public class EmptyCheckScriptService implements ScriptService { public boolean isEmptyRTEDocument(DocumentReference documentRef) { return getEmptyCheckService().isEmptyRTEDocument(documentRef); } private IEmptyCheckRole getEmptyCheckService() { return Utils.getComponent(IEmptyCheckRole.class); } }