DeployCommandParameters dcp =
dc.getCommandParameters(DeployCommandParameters.class);
boolean generateRmicStubs = dcp.generatermistubs;
dc.addTransientAppMetaData(CMPDeployer.MODULE_CLASSPATH, getModuleClassPath(dc));
if( generateRmicStubs ) {
StaticRmiStubGenerator staticStubGenerator = new StaticRmiStubGenerator(habitat);
try {
staticStubGenerator.ejbc(dc);
} catch(Exception e) {
throw new DeploymentException("Static RMI-IIOP Stub Generation exception for " +
dc.getSourceDir(), e);
}
}