class LayerDefinitionParser implements CommandLine.ITypeConverter<FileEntriesLayer> {

  @Override
  public FileEntriesLayer convert(String layerDefinition) throws Exception {
    FileEntriesLayer.Builder layerBuilder = FileEntriesLayer.builder();
    for (String specification : layerDefinition.split(";", -1)) {
      parseSpecification(layerBuilder, specification);
    }
    return layerBuilder.build();
  }

}