agave-apps/apps-core/src/main/java/org/iplantc/service/apps/queue/actions/CloneAction.java
/**
     * Copies the {@link Software#getDeploymentPath()} from {@link Software#getStorageSystem()} 
     * to the local system for bundling and archiving.
     * 
     * @return {@link File} reference to the location of the cached deployment path on the local system.
     */
Copies the  Software#getDeploymentPath() from  Software#getStorageSystem()
to the local system for bundling and archiving.

@return  File reference to the location of the cached deployment path on the local system.
Copies the Software#getDeploymentPath () from Software#getStorageSystem () to the local system for bundling and archiving . @return File reference to the location of the cached deployment path on the local system .
protected File fetchPrivateAppArchiveFromDeploymentSystem(RemoteDataClient sourceSoftwareDataClient) 
    {
        File stagingDir = Files.createTempDir();
        String originalAppDeploymentPath = getEntity().getDeploymentPath();
        if (originalAppDeploymentPath.endsWith("/")) {
            originalAppDeploymentPath = StringUtils.substring(originalAppDeploymentPath, 0, -1);
        }
        try {
            sourceSoftwareDataClient.get(originalAppDeploymentPath, stagingDir.getAbsolutePath());
            return new File(stagingDir, FilenameUtils.getName(originalAppDeploymentPath));
        }
        catch (FileNotFoundException e) {
            throw new SoftwareException("The original application deployment path, "
                    + getEntity().getDeploymentPath() + ", was not found on the deployment system " 
                    + getEntity().getStorageSystem().getSystemId(), e);
        }
        catch (Exception e) {
            throw new SoftwareException("Failed to retrieve application assets from the original application storage system, " 
                    + getEntity().getStorageSystem().getSystemId(), e);
        }
    }
protected File fetchPrivateAppArchiveFromDeploymentSystem ( RemoteDataClient sourceSoftwareDataClient ) { File stagingDir = Files . createTempDir ( ) ; String originalAppDeploymentPath = getEntity ( ) . getDeploymentPath ( ) ; if ( originalAppDeploymentPath . endsWith ( "/" ) ) { originalAppDeploymentPath = StringUtils . substring ( originalAppDeploymentPath , 0 , - 1 ) ; } try { sourceSoftwareDataClient . get ( originalAppDeploymentPath , stagingDir . getAbsolutePath ( ) ) ; return new File ( stagingDir , FilenameUtils . getName ( originalAppDeploymentPath ) ) ; } catch ( FileNotFoundException e ) { throw new SoftwareException ( "The original application deployment path, " + getEntity ( ) . getDeploymentPath ( ) + ", was not found on the deployment system " + getEntity ( ) . getStorageSystem ( ) . getSystemId ( ) , e ) ; } catch ( Exception e ) { throw new SoftwareException ( "Failed to retrieve application assets from the original application storage system, " + getEntity ( ) . getStorageSystem ( ) . getSystemId ( ) , e ) ; } }
Copies the {@link Software#getDeploymentPath()} from {@link Software#getStorageSystem()}
 to the local system for bundling and archiving.
Copies the { @link Software#getDeploymentPath () } from { @link Software#getStorageSystem () } to the local system for bundling and archiving .