public class GetProfileUtil {
private static final Log log = LogFactory.getLog(GetProfileUtil.class);
public static Map<String,Map<String,String>> getProfile(String path, ServletConfig config, HttpSession session) throws UIException{
try{
ProfilesAdminServiceClient client = new ProfilesAdminServiceClient(config,session);
ProfilesBean bean = client.getUserProfile(path);
if (bean == null || bean.getMainDataString() == null) {
log.error("The profile was not found for the path " + path);
return null;
}
Map <String,Map<String,String>> data = new HashMap();