private void parseAdvice(AdviceType advice){
  List<Advice> adviceList=new ArrayList<Advice>();
  for (  RSAAdviceType rsaAdvice : advice.getRSAAdvice()) {
    String source=rsaAdvice.getAdviceSource();
    List<AdviceAttribute> adviceAttributes=new ArrayList<AdviceAttribute>();
    if (rsaAdvice.getAttribute() != null) {
      for (      AttributeType attribute : rsaAdvice.getAttribute()) {
        List<String> attrValues=attribute.getAttributeValue();
        String attrName=attribute.getName();
        String friendlyName=attribute.getFriendlyName();
        if (attrValues == null) {
          attrValues=new ArrayList<String>();
        }
        adviceAttributes.add(new AdviceAttribute(attrName,friendlyName,attrValues));
      }
    }
    adviceList.add(new Advice(source,adviceAttributes));
  }
  _advice=Collections.unmodifiableList(adviceList);
}

private void parseAdvice ( AdviceType advice ) { List < Advice > adviceList = new ArrayList < Advice > ( ) ; for ( RSAAdviceType rsaAdvice : advice . getRSAAdvice ( ) ) { String source = rsaAdvice . getAdviceSource ( ) ; List < AdviceAttribute > adviceAttributes = new ArrayList < AdviceAttribute > ( ) ; if ( rsaAdvice . getAttribute ( ) != null ) { for ( AttributeType attribute : rsaAdvice . getAttribute ( ) ) { List < String > attrValues = attribute . getAttributeValue ( ) ; String attrName = attribute . getName ( ) ; String friendlyName = attribute . getFriendlyName ( ) ; if ( attrValues == null ) { attrValues = new ArrayList < String > ( ) ; } adviceAttributes . add ( new AdviceAttribute ( attrName , friendlyName , attrValues ) ) ; } } adviceList . add ( new Advice ( source , adviceAttributes ) ) ; } _advice = Collections . unmodifiableList ( adviceList ) ; }
parses the advice list
