public static URI uri(String value){
  return (value != null && value.length() > 0) ? URI.create(value) : null;
}

public static URI uri ( String value ) { return ( value != null && value . length ( ) > 0 ) ? URI . create ( value ) : null ; }
converts a string to a uri , null safe .
