*Create archives for the module file and, if present, the deployment plan file, and
*then delegate to the variant of deploy that accepts archives as arguments.
*/
AbstractArchive appArchive = null;
AbstractArchive planArchive = null;
ArchiveFactory archiveFactory = new ArchiveFactory();
try {
appArchive = archiveFactory.openArchive(toJarURI(moduleArchive));
if(deploymentPlan != null && deploymentPlan.length() != 0) {
planArchive = archiveFactory.openArchive(toJarURI(deploymentPlan));
if (planArchive == null) {
throw new IllegalArgumentException(localStrings.getLocalString(
"enterprise.deployapi.spi.noarchivisthandlesplan",
"No archivist is able to handle the deployment plan {0}",
new Object [] {deploymentPlan.getAbsolutePath()}