private ApplicationHolder getApplicationHolder(ReadableArchive source,
DeploymentContext context, boolean isDirectory) {
ApplicationHolder holder = context.getModuleMetaData(ApplicationHolder.class);
if (holder==null || holder.app==null) {
try {
DeployCommandParameters params = context.getCommandParameters(DeployCommandParameters.class);
if (params != null && params.altdd != null) {
source.addArchiveMetaData(DeploymentProperties.ALT_DD,
params.altdd);
}
long start = System.currentTimeMillis();