public static Props fromHierarchicalMap ( final Map < String , Object > propsMap ) { if ( propsMap == null ) { return null ; } final String source = ( String ) propsMap . get ( "source" ) ; final Map < String , String > propsParams = ( Map < String , String > ) propsMap . get ( "props" ) ; final Map < String , Object > parent = ( Map < String , Object > ) propsMap . get ( "parent" ) ; final Props parentProps = fromHierarchicalMap ( parent ) ; final Props props = new Props ( parentProps , propsParams ) ; props . setSource ( source ) ; return props ; }
Convert a hierarchical Map to Prop Object