} catch (InstantiationException ex2) {
logger.error("Error creating new care resource: ", ex2);
} catch (IllegalAccessException ex3) {
logger.error("Error creating new care resource: ", ex3);
}
throw new NotFoundException(resourceType + " not found");
} finally {
persistenceSvc.commitTx();
persistenceSvc.close();
}
}