code: @Pure
  	public static String formatHex(int amount, int digits) {
  		final StringBuffer hex = new StringBuffer(Integer.toHexString(amount));
  		while (hex.length() < digits) {
  			hex.insert(0, "0"); //$NON-NLS-1$
  		}
  		return hex.toString();
  	}
docs: Format the given int value to hexadecimal.
  
  @param amount the value to convert.
  @param digits the minimal number of digits.
  @return a string representation of the given value.