class AttributeBytecodeGenerator {

    @SuppressWarnings("unchecked")
    public static <O, A> Class<? extends SimpleNullableAttribute<O, A>> generateSimpleNullableAttributeForField(Class<O> pojoClass, Class<A> attributeValueType, String fieldName, String attributeName) {
        ensureFieldExists(pojoClass, attributeValueType, fieldName, attributeName);
        return generateSimpleAttribute(SimpleNullableAttribute.class, pojoClass, attributeValueType, attributeName, "object." + fieldName);
    }

}