String seqNum = null;
String extension = null;
// If more than 3 parts, it means nonce contains '.', assemble them.
if (parts.length > 3) {
Joiner joiner = Joiner.on('.').skipNulls();
parsedNonce = joiner.join(Arrays.asList(parts).subList(0, parts.length - 2));
seqNum = parts[parts.length - 2];
extension = parts[parts.length - 1];
} else if (parts.length == 3) {
parsedNonce = parts[0];
seqNum = parts[1];