class AttributeBytecodeGenerator {

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

}