Dependencies dependencies = env.getDependencies();
if (dependencies == null) {
dependencies = new Dependencies();
env.setDependencies(dependencies);
}
Dependency securityDependency = new Dependency();
securityDependency.setGroupId("org.apache.geronimo.framework");
securityDependency.setArtifactId("j2ee-security");
securityDependency.setType("car");
if (!dependencies.getDependency().contains(securityDependency)) {
dependencies.getDependency().add(securityDependency);
}
}