Changed replacement to match up with the way it is done in the master branch.

Changed createM3FromJar.