public String getValue(CmsUser user) {

        String value = null;
        if (isAdditionalInfo()) {
            value = (String)user.getAdditionalInfo(getAddInfoKey());
        } else {
            try {
                PropertyUtilsBean propUtils = new PropertyUtilsBean();
                value = (String)propUtils.getProperty(user, getField().name());
            } catch (IllegalAccessException | InvocationTargetException | NoSuchMethodException e) {
                LOG.error("Error reading account info field.", e);
            }
        }
        return value;
    }
public String getValue ( CmsUser user ) { String value = null ; if ( isAdditionalInfo ( ) ) { value = ( String ) user . getAdditionalInfo ( getAddInfoKey ( ) ) ; } else { try { PropertyUtilsBean propUtils = new PropertyUtilsBean ( ) ; value = ( String ) propUtils . getProperty ( user , getField ( ) . name ( ) ) ; } catch ( IllegalAccessException | InvocationTargetException | NoSuchMethodException e ) { LOG . error ( "Error reading account info field." , e ) ; } } return value ; }
Returns the account info value for the given user.<p>

@param user the user

@return the value