Analize java annotations of getter method by property name

Get getter Method by property name

    protected Method methodGetter(String nombre){
        try {
            BeanInfo beanInfo = Introspector.getBeanInfo(enteClass);

            for(PropertyDescriptor cadaProp : beanInfo.getPropertyDescriptors()){
                if(cadaProp.getName().equals(nombre)){
                    return cadaProp.getReadMethod();
                }
            }
            
        } catch (IntrospectionException ex) {
            Logger.getLogger(PropiedadCrud.class.getName()).log(Level.SEVERE, null, ex);
        }
        
        return null;
    }

Get Annotation object (null if doesn’t exist)

    Method metodo = this.methodGetter();
    FmField fmField = metodo.getAnnotation(FmField.class);