try {
Properties props = new Properties();
props.load(new FileInputStream(args[1]));
// Read the significant issuer dn and check that it exists
if(props.getProperty("significantissuerdn") == null){
throw new IllegalAdminCommandException("Error, the property significantissuerdn isn't set in the propertyfile " + args[1]);
}
String significantIssuerDN = props.getProperty("significantissuerdn");
int cAId = significantIssuerDN.hashCode();
if(ejb.getCAAdminSession().getCAInfo(getAdmin(), cAId) == null){
throw new IllegalAdminCommandException("Error, the property significantissuerdn '" + significantIssuerDN + "' doesn't exists as CA in the system.");
}
// Create the importer
if(props.getProperty("importer.classpath") == null){
throw new IllegalAdminCommandException("Error, the property importer.classpath isn't set in the propertyfile " + args[1]);
}
IHardTokenImporter importer = (IHardTokenImporter) Thread.currentThread().getContextClassLoader().loadClass(props.getProperty("importer.classpath")).newInstance();
importer.startImport(props);
HardTokenData htd;
try{