*/
private void newDetailCheck(SourceBean response) throws EMFUserError {
try {
this.modalita = AdmintoolsConstants.DETAIL_INS;
response.setAttribute("modality", modalita);
Check aCheck=new Check();
aCheck.setCheckId(new Integer(-1));
aCheck.setDescription("");
aCheck.setFirstValue("");
aCheck.setSecondValue("");
aCheck.setName("");
aCheck.setLabel("");
aCheck.setValueTypeCd("");
List checkTypes = DAOFactory.getDomainDAO().loadListDomainsByType("CHECK");
if (checkTypes == null || checkTypes.size() == 0) {
aCheck.setValueTypeCd("");
} else {
Domain domain = (Domain) checkTypes.get(0);
aCheck.setValueTypeCd(domain.getValueCd());
}
response.setAttribute("checkObj", aCheck);
} catch (Exception ex) {
SpagoBITracer.major(AdmintoolsConstants.NAME_MODULE, "DetailEngineModule","newDetailEngine","Cannot prepare page for the insertion", ex );
throw new EMFUserError(EMFErrorSeverity.ERROR, 100);