code: public static String getAttribute(URI uri, String attributeName)
  	{
  		String query = uri.getQuery();
  		if(StringUtil.isEmpty(query)) return null;
  
  		Pattern pattern = Pattern.compile( attributeName + "\\=([^&]*)" );
  		Matcher matcher = pattern.matcher( query );
  
  		if (matcher.find())
  			return matcher.group( 1 );
  		else
  			return null;
  	}
docs: <p>getAttribute.</p>
  
  @param uri a {@link java.net.URI} object.
  @param attributeName a {@link java.lang.String} object.
  @return a {@link java.lang.String} object.