boolean (@NotNull Object object) { try { for (Field field : object.getClass().getDeclaredFields()) { field.setAccessible(true); PropertyName annotation = field.getAnnotation(PropertyName.class); if (annotation != null) { final String name = annotation.value(); setValue(name, String.valueOf(field.get(object))); } } return true; } catch (IllegalAccessException e) { return false; } }