added logic for bitbucket and implemented via common base Controller/Curlrequest.php