class TomcatUserManager extends BaseTomcatManager implements UserManager,
                                                                    ContextualManager {

    @Override
    public List<User> getAll() throws SecurityManagementException {
        MemoryUserDatabase userDatabase = getDatabase();
        try {
            Iterator<org.apache.catalina.User> userIterator = userDatabase.getUsers();
            List<User> users = new ArrayList<>();
            if (userIterator != null) {
                while (userIterator.hasNext()) {
                    org.apache.catalina.User user = userIterator.next();
                    Iterator<Role> groups = user.getRoles();
                    users.add(createUser(user, groups));
                }
            }
            return users;
        } finally {
            closeDatabase(userDatabase);
        }
    }

    public  TomcatUserManager();
    public  TomcatUserManager(final Map<String, String> gitPrefs);
    public  TomcatUserManager(final ConfigProperties gitPrefs);

}