public static Transport fromString(String s) { for (Transport t : Transport.values()) { if (t.toString().equals(s)) { return t; } } return null; }
public void setFallbackTransport(Transport transport) { setFallbackTransportImpl(transport.toString()); }