* @return A new {@link ValidationLayer}, created from the specified
* ValidationLayerFactory.
*/
public static ValidationLayer getValidationLayerFromFactory(
String serviceFactory) {
ValidationLayerFactory factory = null;
Class<ValidationLayerFactory> clazz = null;
try {
clazz = (Class<ValidationLayerFactory>) Class.forName(serviceFactory);
factory = clazz.newInstance();
return factory.createValidationLayer();
} catch (ClassNotFoundException e) {
e.printStackTrace();
LOG.log(Level.WARNING,
"ClassNotFoundException when loading validation layer factory class "
+ serviceFactory + " Message: " + e.getMessage());