class FieldConfiguration {

  public static FieldConfiguration parseFmsInfo(FmsInfo info) {
    Alliance alliance = info.getAlliance();
    String message = info.getGameSpecificMessage();
    if (alliance == null || message.isEmpty() || message.length() != 3) {
      return EMPTY;
    }
    return new FieldConfiguration(
        getConfig(Element.NEAR_SWITCH, alliance, message),
        getConfig(Element.SCALE, alliance, message),
        getConfig(Element.FAR_SWITCH, alliance, message)
    );
  }

  public  FieldConfiguration(Configuration nearSwitch, Configuration scale, Configuration farSwitch);

}