}
}
private static final RegistryService getService(String serviceName, String serviceMode)
{
RegistryService service = null;
try
{
service = (RegistryService) ServiceUtil.getServiceByName(serviceName);
}
catch (org.apache.turbine.services.InstantiationException e)
{
String msg =
"Registry Importer: error loading Registry " + serviceMode + " Service";
logAndPrintError(msg, e);
System.exit(1);
}
if (false == service.getInit())
{
String msg =
"Registry Importer: error initializing Registry " + serviceMode + " Service";
logAndPrintError(msg, null);
System.exit(1);