List<Role> result = new ArrayList<Role>();
List<MRoleMap> roleMap = getMS().listRoles(principalName, principalType);
if (roleMap != null) {
for (MRoleMap role : roleMap) {
MRole r = role.getRole();
result.add(new Role(r.getRoleName(), r
.getCreateTime(), r.getOwnerName()));
}
}
ret = result;
} catch (MetaException e) {