throws IOException, ProcessingException, SAXException {
// calling method is syned
if (this.getLogger().isDebugEnabled()) {
this.getLogger().debug("BEGIN getUsers role="+role+", ID="+ID);
}
RequestState reqstate = this.getRequestState();
Document frag = null;
Configuration conf = reqstate.getModuleConfiguration("single-role-user-management");
if (conf != null) {
// get load-users resource (optional)
Configuration child = conf.getChild("load-users", false);
if (child != null) {
String loadUsersResource = child.getAttribute("uri", null);
SourceParameters loadUsersResourceParameters = SourceParameters.create(child);
if (loadUsersResource != null) {
SourceParameters parameters = (loadUsersResourceParameters == null) ? new SourceParameters()
: loadUsersResourceParameters;
if (reqstate.getApplicationName() != null)
parameters.setSingleParameterValue("application", reqstate.getApplicationName());
if (ID != null) {
parameters.setSingleParameterValue("type", "user");
parameters.setSingleParameterValue("ID", ID);
} else {
parameters.setSingleParameterValue("type", "users");