*/
public DeploymentStatus createLifecycleModuleReference(String referenceName, String targetName, Map options) {
DeploymentStatus ds = new DeploymentStatus();
ds.setStageDescription("CreateLifecycleModuleReference");
try {
final DeploymentTarget target = getAndValidateDeploymentTarget(
targetName, referenceName, false, false);
boolean enabled = (new DeploymentProperties(options)).getEnable();
target.addAppReference(referenceName, enabled, null);
ds.setStageStatus(DeploymentStatus.SUCCESS);
} catch(Exception e) {
ds.setStageException(e);
ds.setStageStatus(DeploymentStatus.FAILURE);
ds.setStageStatusMessage(e.getMessage());