layerJson.setShapeList(shapeJsonList);
List<Stand> standList = standService.getStandListByLayer(layer);
List<StandJson> standJsonList = new ArrayList<StandJson>();
for (Iterator<Stand> iterator3 = standList.iterator(); iterator3.hasNext();) {
Stand stand = iterator3.next();
StandJson standJson = new StandJson();
standJson.setId(stand.getId());
standJson.setCode(stand.getCode());
standJson.setDescription(stand.getDescription());
if(stand.getExhibitor()!=null)
standJson.setExhibitorId(stand.getExhibitor().getId());
standJson.setLogo(stand.getLogo());
standJson.setName(stand.getName());
standJson.setOpenSides(stand.getOpenSides());
Shape standShape = stand.getShape();
ShapeJson standShapeJson = new ShapeJson();
standShapeJson.setColorRGBA(standShape.getColorRGBA());
standShapeJson.setRotate(standShape.getRotate());
standShapeJson.setScaleX(standShape.getScaleX());
standShapeJson.setScaleY(standShape.getScaleY());
standShapeJson.setShapeTypeId(standShape.getType().getId());
standShapeJson.setTranslateX(standShape.getTranslateX());
standShapeJson.setTranslateY(standShape.getTranslateY());
standShapeJson.setValues(standShape.getValues());
standJson.setShape(standShapeJson);
standJson.setStandStatusId(stand.getStatus().getId());
standJson.setSurfaceEffective(stand.getSurfaceEffective());
standJson.setSurfaceTot(stand.getSurfaceTot());
standJson.setOrientation(stand.getOrientation());
standJson.setMoved(stand.getMoved());
standJsonList.add(standJson);
}
layerJson.setStandList(standJsonList);
layerJsonList.add(layerJson);