public static boolean hasQueryComponents(String url){
  return (url.lastIndexOf('?') != -1);
}

public static boolean hasQueryComponents ( String url ) { return ( url . lastIndexOf ( '?' ) != - 1 ) ; }
derermines whether an ldap url has query components .
