public static HashMap traverseToPoint(HashMap m, String p) {
        HashMap pointer = m;
        String[] base = p.split("[@]");
        String[] b = base[0].split("[:]");
        int bl = b.length;
        for(int i=0; i < bl; i++) {
            pointer = (HashMap) pointer.get(b[i]);
        }
        return pointer;
    }
public static HashMap traverseToPoint ( HashMap m , String p ) { HashMap pointer = m ; String [ ] base = p . split ( "[@]" ) ; String [ ] b = base [ 0 ] . split ( "[:]" ) ; int bl = b . length ; for ( int i = 0 ; i < bl ; i ++ ) { pointer = ( HashMap ) pointer . get ( b [ i ] ) ; } return pointer ; }
A helper method to help traverse to a certain point in the map.
@param m Map to traverse
@param p Path to traverse to
@return A reference to the point in the map.