def METHOD_NAME(pom_file_content):
    if contains_repositories(pom_file_content):
        return pom_file_content.find("</repositories>")
    else:
        return pom_file_content.find("<properties>")