@@ -0,0 +1,1744 @@
+/**%0A * %0A */%0Apackage com.github.podd.impl.file;%0A%0Aimport org.openrdf.model.Model;%0Aimport org.openrdf.model.vocabulary.RDF;%0A%0Aimport com.github.podd.api.file.PoddFileRepository;%0Aimport com.github.podd.exception.FileRepositoryIncompleteException;%0Aimport com.github.podd.utils.PoddRdfConstants;%0A%0A/**%0A * A simple static factory to build %7B@link PoddFileRepository%7D instances from a %7B@link Model%7D.%0A * %0A * @author kutila%0A * %0A */%0Apublic class PoddFileRepositoryFactory%0A%7B%0A    /**%0A     * Create a new %7B@link PoddFileRepository%7D instance based on the contents of the given%0A     * %7B@link Model%7D and alias.%0A     * %0A     * @param alias%0A     *            A unique String%0A     * @param model%0A     *            Contains the configurations for a FileRepository%0A     * @return A newly generated File Repository configuration%0A     * @throws FileRepositoryIncompleteException%0A     *             If there was insufficient data to create a new File Repository configuration%0A     */%0A    public static PoddFileRepository%3C?%3E createFileRepository(final String alias, final Model model)%0A        throws FileRepositoryIncompleteException%0A    %7B%0A        if(alias == null %7C%7C model == null %7C%7C model.isEmpty())%0A        %7B%0A            throw new FileRepositoryIncompleteException(model, %22Insufficient data to create a FileRepository%22);%0A        %7D%0A        %0A        PoddFileRepository%3C?%3E fileRepository = null;%0A        %0A        if(!model.filter(null, RDF.TYPE, PoddRdfConstants.PODD_SSH_FILE_REPOSITORY).isEmpty())%0A        %7B%0A            fileRepository = new SSHFileRepositoryImpl(model);%0A        %7D%0A        else%0A        %7B%0A            throw new FileRepositoryIncompleteException(model, %22No known FileRepository type to create an instance%22);%0A        %7D%0A        return fileRepository;%0A    %7D%0A%7D%0A

add a static Factory to construct FileRepositories