protected void readDestination(final PortalSetupDescriptor desc,final Element element){
  String zone;
  Object identifier;
  if (element.hasAttribute("zone")) {
    zone=element.getAttribute("zone");
  }
 else {
    logger.error("Portal destination without zone");
    return;
  }
  if (element.hasAttribute("ref")) {
    final String s=element.getAttribute("ref");
    try {
      identifier=Integer.valueOf(s);
    }
 catch (    final NumberFormatException ex) {
      identifier=s;
    }
  }
 else {
    logger.error("Portal destination without 'ref' value");
    return;
  }
  desc.setDestination(zone,identifier);
}

protected void readDestination ( final PortalSetupDescriptor desc , final Element element ) { String zone ; Object identifier ; if ( element . hasAttribute ( "zone" ) ) { zone = element . getAttribute ( "zone" ) ; } else { logger . error ( "Portal destination without zone" ) ; return ; } if ( element . hasAttribute ( "ref" ) ) { final String s = element . getAttribute ( "ref" ) ; try { identifier = Integer . valueOf ( s ) ; } catch ( final NumberFormatException ex ) { identifier = s ; } } else { logger . error ( "Portal destination without 'ref' value" ) ; return ; } desc . setDestination ( zone , identifier ) ; }
read destination information from an xml element .
