plalloni/plantumlservlet — comment on commit 4f80244a2bc097f388b4ad22bccccaf5d2049aec
File: src/net/sourceforge/plantuml/servlet/PlantUmlServlet.java line 169
By plalloni:

I just reused the format strings from the original enum in plantuml, didn't want to diverge.

I guess you can upperCase() the requested format string and then use that to lookup in the enum but that would be fragile to changes in the enum.

Certainly keeping a local lookup table for mapping from servlet format names to plantuml format names is very undesirable.