* @param gatewayID A string representing a gateway.
* @return An array of artifact URLs.
* @throws java.io.IOException When there is a problem processing an artifact for deployment.
*/
DeploymentArtifact[] getNecessaryDeploymentArtifacts(String gatewayID, String version) throws IOException {
GatewayObject go = getGatewayObject(gatewayID);
Map<ArtifactObject, String> bundles = new HashMap<ArtifactObject, String>();
Map<ArtifactObject, String> artifacts = new HashMap<ArtifactObject, String>();
// First, find all basic bundles and artifacts. An while we're traversing the
// tree of objects, build the tree of properties.
if (go != null) {
for (LicenseObject license : go.getLicenses()) {
for (GroupObject group : license.getGroups()) {
for (ArtifactObject artifact : group.getArtifacts()) {
if (m_bundleHelper.canUse(artifact)) {
bundles.put(artifact, m_bundleHelper.getResourceProcessorPIDs(artifact));
}