private JspPropertyGroup selectProperty(JspPropertyGroup prev,JspPropertyGroup curr){
  if (prev == null) {
    return curr;
  }
  if (prev.getExtension() == null) {
    return prev;
  }
  if (curr.getExtension() == null) {
    return curr;
  }
  String prevPath=prev.getPath();
  String currPath=curr.getPath();
  if (prevPath == null && currPath == null) {
    return prev;
  }
  if (prevPath == null && currPath != null) {
    return curr;
  }
  if (prevPath != null && currPath == null) {
    return prev;
  }
  if (prevPath.length() >= currPath.length()) {
    return prev;
  }
  return curr;
}

private JspPropertyGroup selectProperty ( JspPropertyGroup prev , JspPropertyGroup curr ) { if ( prev == null ) { return curr ; } if ( prev . getExtension ( ) == null ) { return prev ; } if ( curr . getExtension ( ) == null ) { return curr ; } String prevPath = prev . getPath ( ) ; String currPath = curr . getPath ( ) ; if ( prevPath == null && currPath == null ) { return prev ; } if ( prevPath == null && currPath != null ) { return curr ; } if ( prevPath != null && currPath == null ) { return prev ; } if ( prevPath . length ( ) >= currPath . length ( ) ) { return prev ; } return curr ; }
select the property group that has more restrictive url - pattern . in case of tie , select the first .
