}
private Profile toProfile(ResultSet rs, Mapping map, String resLocationSpec) {
Profile profile = new Profile();
ResourceAttributes resAttr = profile.getResourceAttributes();
ProfileAttributes profAttr = profile.getProfileAttributes();
resAttr.setResClass("system.profile");
profAttr.setStatusID("active");
profAttr.setType("profile");
Metadata met = new Metadata();
for (Iterator<String> i = map.getFieldNames().iterator(); i.hasNext();) {
String fldName = i.next();