@ SuppressWarnings ( "unchecked" ) protected static final Tree toTree ( Object object ) { if ( object == null ) { return new Tree ( ( Tree ) null , null , null ) ; } if ( object instanceof Tree ) { return ( Tree ) object ; } if ( object instanceof Map ) { return new Tree ( ( Map < String , Object > ) object ) ; } return new Tree ( ( Tree ) null , null , object ) ; }
Converts an Object to a Tree .