}
private BlockConfigurationBean getBlockConfigurationAsBean(
BlockConfigurationEntry blockConfiguration) {
BlockConfigurationBean bean = new BlockConfigurationBean();
ServiceIdActivation serviceIds = blockConfiguration.getServiceIds();
AgencyAndId blockId = blockConfiguration.getBlock().getId();
bean.setBlockId(AgencyAndIdLibrary.convertToString(blockId));
List<String> activeServiceIds = new ArrayList<String>();
for (LocalizedServiceId lsid : serviceIds.getActiveServiceIds())
activeServiceIds.add(AgencyAndIdLibrary.convertToString(lsid.getId()));
bean.setActiveServiceIds(activeServiceIds);
List<String> inactiveServiceIds = new ArrayList<String>();
for (LocalizedServiceId lsid : serviceIds.getInactiveServiceIds())
inactiveServiceIds.add(AgencyAndIdLibrary.convertToString(lsid.getId()));
bean.setInactiveServiceIds(inactiveServiceIds);
List<BlockTripBean> tripBeans = new ArrayList<BlockTripBean>();
for (BlockTripEntry blockTrip : blockConfiguration.getTrips())
tripBeans.add(getBlockTripAsBean(blockTrip));
bean.setTrips(tripBeans);
TimeZone tz = _agencyService.getTimeZoneForAgencyId(blockId.getAgencyId());
bean.setTimeZone(tz.getID());
return bean;
}