public static DependencyType createDependency(String groupId, String artifactId, String version, String type) {
Trace.tracePoint("Entry", "V11DeploymentPlanCreationOperation.createDependency", groupId, artifactId, version, type);
org.apache.geronimo.xml.ns.deployment_1.ObjectFactory serviceFactory = new org.apache.geronimo.xml.ns.deployment_1.ObjectFactory();
DependencyType dependency = serviceFactory.createDependencyType();
if (groupId != null)
dependency.setGroupId(groupId);
if (artifactId != null)
dependency.setArtifactId(artifactId);
if (version != null)
dependency.setVersion(version);
dependency.setType(type);
Trace.tracePoint("Exit ", "V11DeploymentPlanCreationOperation.createDependency", dependency);
return dependency;
}