try {
method.invoke(instance, objectFactory.getInstance());
} catch (IllegalAccessException e) {
throw new AssertionError("Method is not accessible [" + method + "]");
} catch (IllegalArgumentException e) {
ObjectCreationException oce = new ObjectCreationException("Exception thrown by setter", e);
oce.setIdentifier(method.getName());
throw oce;
} catch (InvocationTargetException e) {
ObjectCreationException oce = new ObjectCreationException("Exception thrown by setter", e);
oce.setIdentifier(method.getName());
throw oce;
}
}