for (String userName : procedureDescriptor.m_authUsers) {
final User user = db.getUsers().get(userName);
if (user == null) {
throw compiler.new VoltCompilerException("Procedure " + className + " has a user " + userName + " that does not exist");
}
final UserRef userRef = procedure.getAuthusers().add(userName);
userRef.setUser(user);
}
for (String groupName : procedureDescriptor.m_authGroups) {
final Group group = db.getGroups().get(groupName);
if (group == null) {
throw compiler.new VoltCompilerException("Procedure " + className + " has a group " + groupName + " that does not exist");