* The class name of the service factory used to create new
* Catalog objects.
* @return A newly constructed {@link Catalog} object.
*/
public static Catalog getCatalogServiceFromFactory(String serviceFactory) {
CatalogFactory factory = null;
Class<CatalogFactory> clazz = null;
try {
clazz = (Class<CatalogFactory>) Class.forName(serviceFactory);
factory = clazz.newInstance();
return factory.createCatalog();
} catch (ClassNotFoundException e) {
e.printStackTrace();
LOG.log(Level.WARNING,
"ClassNotFoundException when loading metadata store factory class "
+ serviceFactory + " Message: " + e.getMessage());