in shardingsphere-ui-backend/src/main/java/org/apache/shardingsphere/ui/common/constant/InstanceType.java [41:48]
public static InstanceType nameOf(final String name) {
for (InstanceType each : InstanceType.values()) {
if ((each.name).equals(name)) {
return each;
}
}
throw new ShardingSphereUIException(ShardingSphereUIException.SERVER_ERROR, String.format("Unsupported governance instance type `%s`", name));
}