class SequenceHeaderUtil {

    public String createSequenceHeader(final String headerSource, final String sequenceId) {
        String result = "";
        if (headerSource == null) {
            result = sequenceId;
        } else {
            StringBuilder sb = new StringBuilder(headerSource);
            sb.append(SequenceConstants.SEQUENCE_KEY_SEPARATOR.getConstant()).append(sequenceId);
            result = sb.toString();
        }
        return result;
    }

}