public static String hexToDecimal(final String hex) {
		final StringBuilder builder = new StringBuilder();
		for (int i = 0; i < hex.length(); i++) {
			try {
				final int value = Integer.parseInt(hex.substring(i, i + 1), 16);
				builder.append(value + ",");
			} catch (final NumberFormatException e) {
				builder.append((i + 1) + ",");
			}
		}
		return builder.toString().replaceFirst(",$", "");
	}