private void processOutputDirectory() {
        final String root = outputDirectory.getAbsolutePath();
        final String leaf = PhaseTwoApplication.DIR_ARTIFACT;
        final String path = asPath(root, leaf);
        final File phaseIIPath = new File(path);

        // Fail if the working path doesn't contain a phase II artifact
        if (!phaseIIPath.isDirectory()) {
            error(NOT_A_PHASE2_DIR + ": " + phaseIIPath);
            failUsage();
        }

        // Fail if the working path doesn't contain any proto-networks
        final File[] networks =
                phaseIIPath.listFiles(new GlobalProtonetworkFilter());
        if (networks.length == 0) {
            final String err = Strings.NO_GLOBAL_PROTO_NETWORK;
            error(err + " in: " + phaseIIPath);
            failUsage();
        }

        // Fail if the working path contains more than one proto-network
        if (networks.length > 1) {
            error(EXPECTED_ONE_NETWORK + ", found " + networks.length);
            failUsage();
        }

        // Create the directory artifact or fail
        artifactPath = createDirectoryArtifact(outputDirectory, DIR_ARTIFACT);

        reconstituteNetwork(networks[0]);
    }
private void processOutputDirectory ( ) { final String root = outputDirectory . getAbsolutePath ( ) ; final String leaf = PhaseTwoApplication . DIR_ARTIFACT ; final String path = asPath ( root , leaf ) ; final File phaseIIPath = new File ( path ) ; if ( ! phaseIIPath . isDirectory ( ) ) { error ( NOT_A_PHASE2_DIR + ": " + phaseIIPath ) ; failUsage ( ) ; } final File [ ] networks = phaseIIPath . listFiles ( new GlobalProtonetworkFilter ( ) ) ; if ( networks . length == 0 ) { final String err = Strings . NO_GLOBAL_PROTO_NETWORK ; error ( err + " in: " + phaseIIPath ) ; failUsage ( ) ; } if ( networks . length > 1 ) { error ( EXPECTED_ONE_NETWORK + ", found " + networks . length ) ; failUsage ( ) ; } artifactPath = createDirectoryArtifact ( outputDirectory , DIR_ARTIFACT ) ; reconstituteNetwork ( networks [ 0 ] ) ; }
/*
Processes the output directory.