RiakLinks links = null;
RiakIndex index = null;
RiakVClock vclock = null;
JsonProperty jacksonJsonProperty = null;
AnnotatedMember member = beanPropertyWriter.getMember();
if (member instanceof AnnotatedField) {
AnnotatedElement element = member.getAnnotated();
key = element.getAnnotation(RiakKey.class);
usermeta = element.getAnnotation(RiakUsermeta.class);
links = element.getAnnotation(RiakLinks.class);
index = element.getAnnotation(RiakIndex.class);
vclock = element.getAnnotation(RiakVClock.class);
jacksonJsonProperty = element.getAnnotation(JsonProperty.class);
} else {
@SuppressWarnings("rawtypes") Class clazz = member.getDeclaringClass();
Field field;
try {
field = clazz.getDeclaredField(beanPropertyWriter.getName());
key = field.getAnnotation(RiakKey.class);
usermeta = field.getAnnotation(RiakUsermeta.class);