private StopProblemReportBean getRecordAsBean(StopProblemReportRecord record) {
AgencyAndId stopId = record.getStopId();
StopProblemReportBean bean = new StopProblemReportBean();
bean.setCode(record.getCode());
bean.setId(record.getId());
bean.setStatus(record.getStatus());
bean.setStopId(AgencyAndIdLibrary.convertToString(stopId));
bean.setTime(record.getTime());
bean.setUserComment(record.getUserComment());
if (record.getUserLat() != null)
bean.setUserLat(record.getUserLat());
if (record.getUserLon() != null)
bean.setUserLon(record.getUserLon());
if (record.getUserLocationAccuracy() != null)
bean.setUserLocationAccuracy(record.getUserLocationAccuracy());
if (stopId != null) {
try {
bean.setStop(_stopBeanService.getStopForId(stopId));
} catch (NoSuchStopServiceException ex) {
}
}