class LoanPrdAction extends BaseAction {

    @SuppressWarnings("unchecked")
    public Set<QuestionGroupReference> getQuestionGroups(HttpServletRequest request) throws PageExpiredException {
        Set<QuestionGroupReference> questionGroupReferences = null;
        List<QuestionGroupDetail> questionGroups = (List<QuestionGroupDetail>) SessionUtils.getAttribute(ProductDefinitionConstants.SELECTEDQGLIST, request);
        if (CollectionUtils.isNotEmpty(questionGroups)) {
            questionGroupReferences = new LinkedHashSet<QuestionGroupReference>(questionGroups.size());
            for (QuestionGroupDetail questionGroupDetail : questionGroups) {
                QuestionGroupReference questionGroupReference = new QuestionGroupReference();
                questionGroupReference.setQuestionGroupId(questionGroupDetail.getId());
                questionGroupReferences.add(questionGroupReference);
            }
        }
        return questionGroupReferences;
    }

    public  LoanPrdAction();

}