final AttributesImpl attrs = new AttributesImpl();
startElement("resources", handler);
saveCustomColumnDefinitions(project, handler);
ProjectResource[] resources = project.getHumanResourceManager().getResourcesArray();
for (int i = 0; i < resources.length; i++) {
HumanResource p = (HumanResource) resources[i];
addAttribute("id", String.valueOf(p.getId()), attrs);
addAttribute("name", p.getName(), attrs);
addAttribute("function", p.getRole().getPersistentID(), attrs);
addAttribute("contacts", p.getMail(), attrs);
addAttribute("phone", p.getPhone(), attrs);
startElement("resource", attrs, handler);
{
saveCustomProperties(project, p, handler);
}
endElement("resource", handler);