*/
public static SerializerFactory createFactory(
String[] factoryNames,
EntityResolver resolver) {
SerializerFactory factory = new SerializerFactory();
if (factoryNames != null && factoryNames.length > 0) {
for (String factoryName : factoryNames) {
try {
factory.addFactory(loadFactory(factoryName, resolver));
}
catch (Exception e) {
throw new CayenneRuntimeException("Error configuring factory class "
+ factoryName, e);
}