while (ai.hasNext()) {
list.add(ai.next().getID());
}
return list.toArray(new String[list.size()]);
} catch (RepositoryException e) {
throw new FtpException(e);
}
}
} finally {
admin.close();
}
// no user managemnent or problem accessing them
throw new FtpException("Cannot get users");
}