* @throws IllegalAccessException
* @throws InstantiationException
*/
private MatterTxBusinessRulesBase getRule() throws InstantiationException, IllegalAccessException {
if (rule == null) {
DocumentEntry entry = KRADServiceLocatorWeb.getDataDictionaryService().getDataDictionary().getDocumentEntry(getDocTypeName());
if (entry != null) {
rule = (MatterTxBusinessRulesBase) entry.getBusinessRulesClass().newInstance();
}
}
return rule;
}