public String preCreateAssignment() {
        topics = topicModel.getAll(false);
        classs = classModel.getAll();

        boolean check = true;
        if (topics.isEmpty()) {
            addFieldError("asmo.topicId", "Topic List is empty");
            check = false;
        }
        
        if (classs.isEmpty()) {
            addFieldError("asmo.classname", "Class List is empty");
            check = false;
        }

        if (check) {
            for (TopicObj topicObj : topics) {
                mTopic.put(topicObj.getTopicId(), topicObj.getName());
            }
            
            for (ClassObj classObj : classs) {
                mClass.put(classObj.getClassname(), classObj.getClassname());
            }
        }

        return SUCCESS;
    }