continue;
}
Class targetType = ReflectionUtil.getTypeParameterForSuper(copyStrategy, CopyStrategy.class, 0);
if (targetType != null) {
try {
copyStrategyLibrary.register(targetType, copyStrategy.newInstance());
} catch (InstantiationException | IllegalAccessException e) {
logger.error("Cannot register CopyStrategy '{}' - failed to instantiate", copyStrategy, e);
}
} else {
logger.error("Cannot register CopyStrategy '{}' - unable to determine target type", copyStrategy);