if(servicePathObject instanceof HashMap){
servicePathMap = (HashMap)servicePathObject;
}else if(servicePathObject instanceof GenericEntity){
GenericEntity servicePathEntity = (GenericEntity)servicePathObject;
Set servicePathEntitySet = servicePathEntity.keySet();
Iterator spesItr = servicePathEntitySet.iterator();
servicePathMap = FastMap.newInstance();
while(spesItr.hasNext()){
String spesKey = (String)spesItr.next();
servicePathMap.put(spesKey, servicePathEntity.get(spesKey));