diff --git a/etor/src/main/java/gov/hhs/cdc/trustedintermediary/etor/ruleengine/transformation/TransformationRule.java b/etor/src/main/java/gov/hhs/cdc/trustedintermediary/etor/ruleengine/transformation/TransformationRule.java index 5c987f668..080526c1f 100644 --- a/etor/src/main/java/gov/hhs/cdc/trustedintermediary/etor/ruleengine/transformation/TransformationRule.java +++ b/etor/src/main/java/gov/hhs/cdc/trustedintermediary/etor/ruleengine/transformation/TransformationRule.java @@ -3,7 +3,6 @@ import gov.hhs.cdc.trustedintermediary.etor.ruleengine.FhirResource; import gov.hhs.cdc.trustedintermediary.etor.ruleengine.Rule; import gov.hhs.cdc.trustedintermediary.etor.ruleengine.RuleExecutionException; -import java.lang.reflect.InvocationTargetException; import java.util.List; import java.util.Map; import java.util.concurrent.ConcurrentHashMap; @@ -65,11 +64,7 @@ private static CustomFhirTransformation createTransformationInstance( try { Class clazz = Class.forName(fullClassName); return (CustomFhirTransformation) clazz.getDeclaredConstructor().newInstance(); - } catch (ClassNotFoundException - | InstantiationException - | IllegalAccessException - | NoSuchMethodException - | InvocationTargetException e) { + } catch (Exception e) { throw new RuntimeException( "Error creating transformation instance for: " + transformationName, e); }