class ProcessGitSourceStep extends SyncFlowableStep {

    protected String extractRepoName(String gitUri, String processId) {
        if (!gitUri.endsWith(PATH_SEPARATOR + org.eclipse.jgit.lib.Constants.DOT_GIT)) {
            return gitUri.substring(gitUri.lastIndexOf(PATH_SEPARATOR) + 1) + processId;
        }
        String repoLocation = gitUri.substring(0, gitUri.lastIndexOf(PATH_SEPARATOR + org.eclipse.jgit.lib.Constants.DOT_GIT));
        return repoLocation.substring(repoLocation.lastIndexOf(PATH_SEPARATOR) + 1) + processId;
    }

}