public ListGroupsGivenAUserResponseDocument listGroupsGivenAUser(
ListGroupsGivenAUserDocument input) throws XregistryException {
log.info("Request Received " + input.xmlText());
String[] groups = registryImpl.listGroupsGivenAUser(findUserDN(), input
.getListGroupsGivenAUser().getUserName());
ListGroupsGivenAUserResponseDocument responseDocument = ListGroupsGivenAUserResponseDocument.Factory
.newInstance();
ListGroupsGivenAUserResponse listGroupsResponse = responseDocument
.addNewListGroupsGivenAUserResponse();
if (groups != null) {
for (String group : groups) {
listGroupsResponse.addNewGroup().setStringValue(group);
}
}
log.info("Response Sent " + responseDocument.xmlText());
return responseDocument;
}