}
//
// get a handle to the exporter service
//
PsmlManagerService exporterService = null;
PsmlManagerService importerService = null;
try
{
exporterService = (PsmlManagerService)TurbineServices.getInstance().getService("PsmlImportManager");
}
catch (org.apache.turbine.services.InstantiationException e)
{
String msg = "PSML Importer: error loading Psml Exporter Service";
data.setMessage(msg);
Log.error(msg, e);
}
//
// get a handle to the importer service
//
try
{
importerService = PsmlManager.getService();
}
catch (org.apache.turbine.services.InstantiationException e)
{
String msg = "PSML Importer: error loading Psml Importer Service";
data.setMessage(msg);
Log.error(msg, e);
}
if (exporterService.getClass().getName().equals(importerService.getClass().getName()))
{
String msg = "PSML Importer Error: Importer Class cannot equal Exporter Class.";
data.setMessage(msg);
Log.error(msg);
}