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();
String maindatastring = bean.getMainDataString();
String []profile = maindatastring.split("#");
Map<String,String> pair = null;
for(int i=0;i< profile.length;i++){
if(!profile[i].equals("")){
String[]inter = profile[i].split("%");