public FloorLayoutLiteVoCollection list(PreActiveActiveInactiveStatus status) { DomainFactory factory = getDomainFactory(); String hql = " from FloorLayout fl"; ArrayList markers = new ArrayList(); ArrayList values = new ArrayList(); if(status != null) { hql += " where fl.status.id = :status"; markers.add("status"); values.add(status.getID()); } return FloorLayoutLiteVoAssembler.createFloorLayoutLiteVoCollectionFromFloorLayout(factory.find(hql, markers, values)); }