class DeploymentDescriptorFactory {

    /**
     * Build a SOFABoot Module deployment descriptor.
     *
     * @param url SOFABoot module file url
     * @param props properties
     * @param deploymentDescriptorConfiguration deployment descriptor configuration
     * @param modulePropertyName moduleProperty file
     * @return deployment descriptor
     */
    public DeploymentDescriptor build(URL url,
                                      Properties props,
                                      DeploymentDescriptorConfiguration deploymentDescriptorConfiguration,
                                      ClassLoader classLoader, String modulePropertyName) {<FILL_FUNCTION_BODY>}

    protected DeploymentDescriptor createJarDeploymentDescriptor(URL url,
                                                                 Properties props,
                                                                 DeploymentDescriptorConfiguration deploymentDescriptorConfiguration,
                                                                 ClassLoader classLoader) {
        return new JarDeploymentDescriptor(url, props, deploymentDescriptorConfiguration,
            classLoader);
    }

    protected DeploymentDescriptor createFileDeploymentDescriptor(URL url,
                                                                  Properties props,
                                                                  DeploymentDescriptorConfiguration deploymentDescriptorConfiguration,
                                                                  ClassLoader classLoader,
                                                                  String modulePropertyName) {
        return new FileDeploymentDescriptor(url, props, deploymentDescriptorConfiguration,
            classLoader, modulePropertyName);
    }
}

        if (ResourceUtils.isJarURL(url)) {
            return createJarDeploymentDescriptor(url, props, deploymentDescriptorConfiguration,
                classLoader);
        } else {
            return createFileDeploymentDescriptor(url, props, deploymentDescriptorConfiguration,
                classLoader, modulePropertyName);
        }
    
<no_super_class>