* {@link QueueRepository}s.
* @return A new implementation of a {@link QueueRepository}.
*/
public static QueueRepository getQueueRepositoryFromFactory(String queueRepositoryFactory) {
Class clazz = null;
QueueRepositoryFactory factory = null;
try {
clazz = Class.forName(queueRepositoryFactory);
factory = (QueueRepositoryFactory) clazz.newInstance();
return factory.createQueueRepository();
} catch (ClassNotFoundException e) {
e.printStackTrace();
LOG.log(Level.WARNING,
"ClassNotFoundException when loading queue repository factory class "
+ queueRepositoryFactory + " Message: " + e.getMessage());