question: default Literal toLiteral ( final Object value ) { final ValueFactory vf = Defaults . VF ; if ( value instanceof Float ) { return vf . createLiteral ( ( Float ) value ) ; } else if ( value instanceof Double ) { return vf . createLiteral ( ( Double ) value ) ; } else if ( value instanceof Integer ) { return vf . createLiteral ( ( Integer ) value ) ; } else if ( value instanceof Long ) { return vf . createLiteral ( ( Long ) value ) ; } else if ( value instanceof Boolean ) { return vf . createLiteral ( ( Boolean ) value ) ; } else if ( value instanceof Short ) { return vf . createLiteral ( ( Short ) value ) ; } else if ( value instanceof Byte ) { return vf . createLiteral ( ( Byte ) value ) ; } else if ( value instanceof String ) { return vf . createLiteral ( ( String ) value ) ; } else { throw new IllegalArgumentException ( String . format ( "not supported: %s" , value ) ) ; } }
target:  Create a datatyped literal from a blueprints property value. <p> Supports: Float, Double, Integer, Long, Boolean, Short, Byte, and String.