Reverting the change to the POM template and removing the templating/clenup logic for the Java backend.