GoPluginApiResponse handleLatestRevisionSince(GoPluginApiRequest goPluginApiRequest) {
Map<String, String> configuration = keyValuePairs(goPluginApiRequest, "scm-configuration");
GitConfig gitConfig = getGitConfig(configuration);
String flyweightFolder = (String) getValueFor(goPluginApiRequest, "flyweight-folder");
Map<String, Object> previousRevisionMap = getMapFor(goPluginApiRequest, "previous-revision");
<BUG>Map<String, String> prStatuses = JSONUtils.fromJson((String) ((Map<String, Object>) previousRevisionMap.get("data")).get("ACTIVE_PULL_REQUESTS"), Map.class);

try {
GitHelper git = HelperFactory.git(gitConfig, new File(flyweightFolder));
LOGGER.debug("handleLatestRevisionSince# - Cloning / Fetching the latest for " + gitConfig.getUrl());
git.cloneOrFetch(PR_FETCH_REFSPEC);
Map<String, String> prToRevisionMap = git.getBranchToRevisionMap(PR_MERGE_PREFIX);
</BUG>
if (prToRevisionMap.isEmpty()) {

GoPluginApiResponse handleLatestRevisionSince(GoPluginApiRequest goPluginApiRequest) {
Map<String, String> configuration = keyValuePairs(goPluginApiRequest, "scm-configuration");
GitConfig gitConfig = getGitConfig(configuration);
String flyweightFolder = (String) getValueFor(goPluginApiRequest, "flyweight-folder");
Map<String, Object> previousRevisionMap = getMapFor(goPluginApiRequest, "previous-revision");
Map<String, String> prStatuses = (Map<String, String>) JSONUtils.fromJSON((String) ((Map<String, Object>) previousRevisionMap.get("data")).get("ACTIVE_PULL_REQUESTS"));
LOGGER.debug("handleLatestRevisionSince# - Cloning / Fetching the latest for " + gitConfig.getUrl());
try {
GitHelper git = HelperFactory.git(gitConfig, new File(flyweightFolder));
git.cloneOrFetch(provider.getRefSpec());
Map<String, String> prToRevisionMap = git.getBranchToRevisionMap(provider.getRefPattern());
if (prToRevisionMap.isEmpty()) {
