IDE-1574 Deploy service-builder project to remote server failed

Yes but up above where you createProject(op) calls createProject(op, projectName) there you have used op.getProjectName() insteadof getfinalProjectName()  So if you search your code the getFinalProjectName() has been lost completely which is incorrect