final Constructor constructor = clazz.getConstructor(
new Class[]{PolicyDescriptorAccessor.class});
return (PolicyValueFactory) constructor.newInstance(
new Object[]{accessor});
} catch (ClassNotFoundException e) {
throw new ExtendedRuntimeException(e);
} catch (NoSuchMethodException e) {
throw new ExtendedRuntimeException(e);
} catch (InstantiationException e) {
throw new ExtendedRuntimeException(e);
} catch (IllegalAccessException e) {
throw new ExtendedRuntimeException(e);
} catch (InvocationTargetException e) {
throw new ExtendedRuntimeException(e);
}
}