*/
public FormatFactory registerFormat(String name, OutputFormatBuilder builder)
throws FlumeSpecException {
synchronized (registeredFormats) {
if (registeredFormats.containsKey(name)) {
throw new FlumeSpecException(
"Redefining registered output formats is not permitted. Attempted to redefine "
+ name);
}
registeredFormats.put(name, builder);