public static Optional < Object > tryValue ( ReadableRepresentation representation , String name ) { try { return Optional . fromNullable ( representation . getValue ( name ) ) ; } catch ( RepresentationException e ) { return Optional . absent ( ) ; } }
Returns a property from the Representation .