private KamInfo loadKAMInfo(final String kamName, final String filePath,
final SystemConfiguration cfg) throws PKAMSerializationFailure {
final DBConnection kcc = createKAMConnection(kamName, cfg);
KamInfo kamInfo;
KAMCatalogDao kcdao = null;
try {
kcdao = new KAMCatalogDao(kcc,
cfg.getKamCatalogSchema(), cfg.getKamSchemaPrefix());
kamInfo = kcdao.getKamInfoByName(kamName);
} catch (SQLException e) {
throw new PKAMSerializationFailure(filePath, e.getMessage());
} finally {
if (kcdao != null) {
kcdao.terminate();
}
}
return kamInfo;
}