if (factory == null)
{
throw new NullPointerException("factory must not be null");
}
String type = factory.getType();
TypedOutletSaxHandlerFactory oldFactory
= typedOutletHandlerFactories.get(type);
if (oldFactory != null)
{
throw new ConfigurationException(
"Attempted to register a OutletSaxHandlerFactory "
+ "of type "
+ factory.getType()
+ " and class "
+ factory.getClass().getName()
+ " : A factory with this type already exists, "
+ " it has the class "
+ oldFactory.getClass().getName());
}
typedOutletHandlerFactories.put(factory.getType(), factory);
}