class AttributeBytecodeGenerator {

    @SuppressWarnings("unchecked")
    public static <O, A> Class<? extends MultiValueAttribute<O, A>> generateMultiValueAttributeForGetter(Class<O> pojoClass, Class<A> attributeValueType, String getterMethodName, String attributeName) {
        ensureGetterExists(pojoClass, attributeValueType, getterMethodName, attributeName);
        return generateMultiValueAttribute(MultiValueAttribute.class, pojoClass, attributeValueType, attributeName, "object." + getterMethodName + "()");
    }

}