public static Artifact createArtifact(String groupId, String artifactId, String version, String type) {
Trace.tracePoint("Entry", "V21DeploymentPlanCreationOperation.createArtifact", groupId, artifactId, version, type);
org.apache.geronimo.jee.deployment.ObjectFactory serviceFactory = new org.apache.geronimo.jee.deployment.ObjectFactory();
Artifact artifact = serviceFactory.createArtifact();
if (groupId != null)
artifact.setGroupId(groupId);
if (artifactId != null)
artifact.setArtifactId(artifactId);
if (version != null)
artifact.setVersion(version);
artifact.setType(type);
Trace.tracePoint("Exit ", "V21DeploymentPlanCreationOperation.createArtifact", artifact);
return artifact;
}