public static void initializeInternalProject(CommandExecutor executor) {
        final long creationTimeMillis = System.currentTimeMillis();
        try {
            executor.execute(createProject(creationTimeMillis, Author.SYSTEM, INTERNAL_PROJ))
                    .get();
        } catch (Throwable cause) {
            cause = Exceptions.peel(cause);
            if (!(cause instanceof ProjectExistsException)) {
                throw new Error("failed to initialize an internal project", cause);
            }
        }
        // These repositories might be created when creating an internal project, but we try to create them
        // again here in order to make sure them exist because sometimes their names are changed.
        for (final String repo : ImmutableList.of(Project.REPO_META, Project.REPO_DOGMA)) {
            try {
                executor.execute(createRepository(creationTimeMillis, Author.SYSTEM, INTERNAL_PROJ, repo))
                        .get();
            } catch (Throwable cause) {
                cause = Exceptions.peel(cause);
                if (!(cause instanceof RepositoryExistsException)) {
                    throw new Error(cause);
                }
            }
        }
    }
public static void initializeInternalProject ( CommandExecutor executor ) { final long creationTimeMillis = System . currentTimeMillis ( ) ; try { executor . execute ( createProject ( creationTimeMillis , Author . SYSTEM , INTERNAL_PROJ ) ) . get ( ) ; } catch ( Throwable cause ) { cause = Exceptions . peel ( cause ) ; if ( ! ( cause instanceof ProjectExistsException ) ) { throw new Error ( "failed to initialize an internal project" , cause ) ; } } for ( final String repo : ImmutableList . of ( Project . REPO_META , Project . REPO_DOGMA ) ) { try { executor . execute ( createRepository ( creationTimeMillis , Author . SYSTEM , INTERNAL_PROJ , repo ) ) . get ( ) ; } catch ( Throwable cause ) { cause = Exceptions . peel ( cause ) ; if ( ! ( cause instanceof RepositoryExistsException ) ) { throw new Error ( cause ) ; } } } }
Creates an internal project and repositories such as a token storage.