public final Folder findTargetFolder(@NotNull final String generatorName, @NotNull final String artifactName)
            throws ProjectNameNotDefinedException, ArtifactNotFoundException, FolderNameNotDefinedException, GeneratorNotFoundException,
            ProjectNotFoundException, FolderNotFoundException {

        Contract.requireArgNotNull("generatorName", generatorName);
        Contract.requireArgNotNull("artifactName", artifactName);

        return findTargetFolder(generatorName, artifactName, null);

    }
public final Folder findTargetFolder ( @ NotNull final String generatorName , @ NotNull final String artifactName ) throws ProjectNameNotDefinedException , ArtifactNotFoundException , FolderNameNotDefinedException , GeneratorNotFoundException , ProjectNotFoundException , FolderNotFoundException { Contract . requireArgNotNull ( "generatorName" , generatorName ) ; Contract . requireArgNotNull ( "artifactName" , artifactName ) ; return findTargetFolder ( generatorName , artifactName , null ) ; }
Returns a target directory for a given combination of generator name and artifact name.

@param generatorName
Name of the generator.
@param artifactName
Name of the artifact.

@return Target file based on the configuration.

@throws GeneratorNotFoundException
The given generator name was not found in the configuration.
@throws ArtifactNotFoundException
The given artifact was not found in the generator.
@throws ProjectNameNotDefinedException
No project name is bound to the given combination.
@throws FolderNameNotDefinedException
No folder name is bound to the given combination.
@throws ProjectNotFoundException
The project name based on the selection is unknown.
@throws FolderNotFoundException
The folder in the project based on the selection is unknown.