public static Map<String,String> convertObjectMapToStringMap(Object obj){
  final Map<Object,Object> map=(Map<Object,Object>)obj;
  final Map<String,String> metadata=new HashMap<>();
  for (  Map.Entry<Object,Object> entry : map.entrySet()) {
    metadata.put(String.valueOf(entry.getKey()),String.valueOf(entry.getValue()));
  }
  return metadata;
}

public static Map < String , String > convertObjectMapToStringMap ( Object obj ) { final Map < Object , Object > map = ( Map < Object , Object > ) obj ; final Map < String , String > metadata = new HashMap < > ( ) ; for ( Map . Entry < Object , Object > entry : map . entrySet ( ) ) { metadata . put ( String . valueOf ( entry . getKey ( ) ) , String . valueOf ( entry . getValue ( ) ) ) ; } return metadata ; }
convert object with type map < object , object > to map < string , string >
