Found a solution for working with deployment and source code binding of a process application (.war) to this deployment in camunda.
I made a mistake not passing the ProcessApplicationReference parameter to .createDeployment() method. And only after you need to register the application through .getManagementService().registerProcessApplication(deploymentId, processApplicationReference)
So the working version of the code looks like this: