RemoteConnectionType (@Nullable String name) { if (name == null) { return NONE; } try { return valueOf(name); } catch (Exception e) { LOG.error("Cant find RemoteConnectionType with the name " + name, e); return NONE; } }