class GuvnorM2Repository {

    public String getPomText(final String path) {
        ArtifactRepository repository = this.getArtifactRepository(ArtifactRepositoryService.GLOBAL_M2_REPO_NAME);
        final File file = new File(repository.getRootDir(),
                                   path);

        final String normalizedPath = file.toPath().normalize().toString();
        if (isJar(normalizedPath) || isKJar(normalizedPath)) {
            return loadPomFromJar(file);
        } else if (isDeployedPom(normalizedPath)) {
            return loadPom(file);
        } else {
            throw new RuntimeException("Not a valid jar, kjar or pom file: " + path);
        }
    }

    public  GuvnorM2Repository();
    @Inject public  GuvnorM2Repository(ArtifactRepositoryService factory);

}