} else if (value.getClass().isArray()) {
ListDecoratorWrapper<Object> wrapper = new ListDecoratorWrapper<Object>(decoratorClass, (List<Object>) value);
value = wrapper.toArray();
} else {
String decoratorId = SpringContext.getConfigLocators().getDecoratorId(decoratorClass);
Pojo decorator = (Pojo) SpringContext.getApplicationContext().getBean(decoratorId);
BeanUtils.copyProperties(value, decorator);
value = Utils.cglibProxy.criarProxy(decorator, DecoratorPojoAspect.class);
}
return value;
}