package WEB-INF.classes.wenrgise.help.businessdelegate;

import java.util.ArrayList;
import wenrgise.common.exception.EnrgiseSystemException;
import wenrgise.ejb.common.utility.ServiceLocator;
import wenrgise.ejb.help.facade.HelpFacade;
import wenrgise.ejb.help.facade.HelpFacadeHome;

public class HelpBD {
  public ArrayList getChapters(String sText, String sModuleId) throws EnrgiseSystemException {
    try {
      HelpFacadeHome oHome = (HelpFacadeHome)ServiceLocator.getLocator().getService("HrmHelpFacade");
      HelpFacade oHelpFacade = oHome.create();
      return oHelpFacade.getChapterList(sText, sModuleId);
    } catch (Exception oe) {
      System.out.println(String.valueOf(String.valueOf(String.valueOf("Debug For Help").concat(String.valueOf(oe.getClass().getName()))).concat(String.valueOf("  "))).concat(String.valueOf(oe.getMessage())));
      oe.printStackTrace();
      return new ArrayList();
    } 
  }
}
