throws ConfigException
{
CustomBeanConfig customBean = (CustomBeanConfig) bean;
if (value instanceof Annotation) {
customBean.addAnnotation((Annotation) value);
}
else {
AnnotationConfig annConfig = (AnnotationConfig) value;
customBean.addAnnotation(annConfig.replace());
}