bean.setServiceDate(blockInstance.getServiceDate());
return bean;
}
public BlockV2Bean getBlock(BlockBean block) {
BlockV2Bean bean = new BlockV2Bean();
bean.setId(block.getId());
List<BlockConfigurationV2Bean> blockConfigs = new ArrayList<BlockConfigurationV2Bean>();
for (BlockConfigurationBean blockConfig : block.getConfigurations())
blockConfigs.add(getBlockConfig(blockConfig));
bean.setConfigurations(blockConfigs);
return bean;
}